3

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.

Chris W.
  • 37,583
  • 36
  • 99
  • 136
  • 1
    Apparently, it's not currently possible: https://bitbucket.org/zzzeek/mako/issue/235/rearchitect-the-parser-to-be-more-modern – Raj Mar 06 '15 at 07:16
  • @Raj Thanks! Good to know! ...you can post that as an answer if you want, since it *is* the answer. – Chris W. Mar 06 '15 at 17:25

1 Answers1

3

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

See the feature request to add configurable delimiters for Mako.

Raj
  • 1,479
  • 3
  • 15
  • 29