Florian Schlachter

Results 33 comments of Florian Schlachter

@egeozcan Is there any existing implementation of this feature in other well-known template engines?

Regarding to your macro renaming: The `import` tag does support renaming macros like this: `{% import "myfile.html" my_macro as this_macro, another_macro as this_macro2, third_macro_as_is %}`. I'm afraid I'm not following...

Re the context: I believe that pongo2's macros are implicitly `with context` (if I understood jinja2's `with context` correctly). Have you tried it?

Would you consider creating a PR for that? :)

Can you please add some tests? Thanks.

This is not yet supported.

Can you provide a minimal example in code which demonstrates the problem to have it debugged easier? Thanks.

Haven't thought any deeper about this issue yet; I appreciate any design suggestions or ideas for supporting a good internationalization in templates. Ideas welcome!

Are there any gettext or other sort of translation libraries out there in the Go world you guys know of? I prefer using the PO file format since there are...

Absolutely. pongo2 only uses the stdlib; any tags/filters which require external dependencies are in [pongo2-addons](https://github.com/flosch/pongo2-addons). If it turns out we need/use some sort of external 3rd-party-library (which is not developed...