Open georgevreilly opened 11 years ago
Another work-around is to set the DELIMITERS
global. Does that work for your use case? But I agree it should be exposed.
I suppose that would work, but it's ugly. My use case is two-phase template evaluation, build-time and run-time.
I suppose that would work, but it's ugly.
Agreed. That's why I called it another work-around. :grinning:
How amazing is that. I've the same requirement @georgevreilly and that too after 7 years. I suppose this one is not solved then.
The public
pystache.render
function should take an optionaldelimiters
parameter. Lower-level functions takedelimiters
as an optional parameter, but there's no easy way to pass custom delimiters down into them.I know that, as a workaround, the template can be prefixed with Set Delimiter tags, such as
{{=<% %>=}}
, but this is tedious.