It' be nice to be able to pass an escaping function to accommodate instantiating templates for non-html languages. Pystache supports this via an escape parameter. As a use case, I use mustache templates in C++ code generation, where escaping & breaks everything. I can explicitly unescape things in the templates, but it's just easier to pass escape=lambda x: x. JSON string escaping comes to mind as another use case.
It' be nice to be able to pass an escaping function to accommodate instantiating templates for non-html languages. Pystache supports this via an
escapeparameter. As a use case, I use mustache templates in C++ code generation, where escaping&breaks everything. I can explicitly unescape things in the templates, but it's just easier to passescape=lambda x: x. JSON string escaping comes to mind as another use case.