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.
As of March 6, 2015, it's not currently possible.
See the feature request to add configurable delimiters for Mako.
来源:https://stackoverflow.com/questions/28890953/how-to-change-the-mako-substitution-delimiter-characters