Skip to content
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

Dynamic rendering #257

Closed
dragonnikkirocks opened this issue Feb 1, 2021 · 4 comments
Closed

Dynamic rendering #257

dragonnikkirocks opened this issue Feb 1, 2021 · 4 comments

Comments

@dragonnikkirocks
Copy link

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

@spullara
Copy link
Owner

spullara commented Feb 1, 2021

You could extend it to do this. I'll take a stab at it and if successful add it to the tests.

@spullara
Copy link
Owner

spullara commented Feb 1, 2021

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.

spullara added a commit that referenced this issue Feb 1, 2021
…day by extending via the current extension points
@spullara
Copy link
Owner

spullara commented Feb 1, 2021

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.

@spullara
Copy link
Owner

spullara commented Feb 8, 2021

I'm closing this due to no response but I think I answered it.

@spullara spullara closed this as completed Feb 8, 2021
spullara added a commit that referenced this issue Apr 12, 2021
…day by extending via the current extension points
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants