Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pystache.render should take an optional delimiters parameter #147

Open
georgevreilly opened this issue Jun 4, 2013 · 4 comments
Open

pystache.render should take an optional delimiters parameter #147

georgevreilly opened this issue Jun 4, 2013 · 4 comments

Comments

@georgevreilly
Copy link

The public pystache.render function should take an optional delimiters parameter. Lower-level functions take delimiters 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.

@cjerdonek
Copy link
Collaborator

Another work-around is to set the DELIMITERS global. Does that work for your use case? But I agree it should be exposed.

@georgevreilly
Copy link
Author

I suppose that would work, but it's ugly. My use case is two-phase template evaluation, build-time and run-time.

@cjerdonek
Copy link
Collaborator

I suppose that would work, but it's ugly.

Agreed. That's why I called it another work-around. 😀

@pavanmehta91
Copy link

How amazing is that. I've the same requirement @georgevreilly and that too after 7 years.
I suppose this one is not solved then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants