I'm currently evaluating Handlebars.java as a possible micro-template engine for use in a legacy project and so far I'm very impressed. But today I stumbled across a difference between Handlebars.js and Handlebars.java:
Handlebars partials take a second parameter which becomes the context for the partial:
{{> person this}}
Source: Stackoverflow
When I try to do this in Handlebars.java it results in a syntax error. Could this be implemented in Handlebars.java?
I'm currently evaluating Handlebars.java as a possible micro-template engine for use in a legacy project and so far I'm very impressed. But today I stumbled across a difference between Handlebars.js and Handlebars.java:
When I try to do this in Handlebars.java it results in a syntax error. Could this be implemented in Handlebars.java?