Search code examples
pythonhtmltemplatespyramidmako

How to change the mako substitution delimiter characters?


Is it possible to change the "delimiter tags" for expression substitution in the Python Mako templating library? If so, how?

e.g.: Instead of <div>${foobar}</div>, I would like to use the syntax <div>{{foobar}}</div>.

I can't seem to find any references in the Mako docs.


Solution

  • As of March 6, 2015, it's not currently possible.

    See the feature request to add configurable delimiters for Mako.