Dynamic rendering
dragonnikkirocks opened this issue · comments
Hi,
i want to dynamically render a document using Mustache.java. I saw an issue where there is a discussion abt using dynamic partials.
janl/mustache.js#242
Is there something like this in mustache.java? If so, Can someone help with an example?
TIA
You could extend it to do this. I'll take a stab at it and if successful add it to the tests.
Going to take some amount of cleverness as right now the compiler assumes that all templates are static. Still think it is possible to implement but might take some time.
This is not super well tested but you can try it for your use case with the current version of mustache.java as it doesn't require any changes to the core.
I'm closing this due to no response but I think I answered it.