Hello,
As was advised by @jan_blaha I consider switching back to Handlebars
. I am just discovering the jsreport product and Handlebars looks very annoying to work with. jsrender seemed more friendly. Maybe I did not understand the basics, this is why I am asking here. Here are the reasons of my initial switch from Handlbars to jsrender:
jsrender
lets you do the tests directly inside the report like so : {{if someValue >= 2}}print this{{else}}print that{{/if}}. It seems that Handlebars requires to write a function for every single test. Did I miss something?- it seems that jsrender lets you declare "variables" that you can use throughout the templates (with {{* someVar = 2}} ). Does Handlebars provide such a feature?
- I like jsrender's
itemVar
feature that lets you define an alias rather than using the clumsy ../../../field. This is just comfort and readability so I can live without it.
Thanks for you inputs.