I think it may be an anti-pattern and is not possible in current (
https://github.com/spullara/mustache.java).
What I'd like to is
[[> partials/heading.html?case=1]]
I want to use a partial that is almost the same for >10 cases but with 2 parameters being different.
I would like to make it re-usable somehow, And this information purely concern template only, I will not be getting this in binding data.
I can think of 2 options:
- Is it possible to create scoped variables withing mustache template? (that I can use just like the other variables)
- Or maybe I could pass some praameters in partials (call)