-
Notifications
You must be signed in to change notification settings - Fork 209
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
Pongo2 as templating engine #1023
Comments
Thanks @petkostas. Will take a look this week. |
looks promising. As long as it supports handlebars for backward compatibility, and is fast (because hoverfly is used for load testing in many places), it's worth a try. |
This should cover the requirements for Hoverfly |
Also as I mentioned, I am fairly new to GO so I am not really aware of all the alternatives, if there is something else more promising feel free to drop it here, I can possibly provide some context after 10+ years of working with Jinja and Django templates. |
Hi @tommysitu I have a very weird case when JSON is a value of an attribute of some XML which in its turn a property value of a JSON e.g. {
"prop": "<table baz=\"{"version":1}\">Foo</table>"
} And I wonder if it's possible to access |
@tommysitu someone has done benchmarking on go templates engine and it seems pongo2 is much faster than raymonds(named as handlebars in the link). You can check below github link for benchmarking results. If it seems promising, then probably, we can keep both for a while by taking the option from the user to use and then deprecate it other one after sometime. https://github.com/SlinSo/goTemplateBenchmark#full-featured-template-engines-1 |
@petkostas Is there a way in pongo2 to access context in the filter functions? Secondly, can we do a method call as |
@kapishmalik not sure for this, as I have not personally used pongo2 (but rather Django) for the first question, it should be available (context). |
The template engine used by Hoverfly looks stale (Raymond) I would propose to consider porting Pongo2 as the template engine of choice.
Pongo2 is active, has similar approach to Raymond but includes more features
The text was updated successfully, but these errors were encountered: