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
Standalone template population #285
Comments
Hi @farannegarestan, I've used Jtwig for that purpose before. Check this related example: |
That's awesome! Thanks! On Mon, Feb 23, 2015 at 11:51 AM, João Melo notifications@github.com
|
That example won't compile in latest versions.
And also with JtwigConfiguration you may do things like these:
|
@realcnbs Is MapJtwigResource part of 3.1.1? |
It seems the example mentioned above won't work cause there is no JtwigContext in 3.1.1. Do you have any up-to-date example? |
@lyncodev Not sure, i am on snapshot always :) |
@EvSpirit check my comment for working version. |
@realcnbs , thanks a lot! But I'm on 3.1.1 and there is no MapJtwigResource as @lyncodev said before. I'm migration from 2.1.x (huh!) so I have to look into some sources :) |
@EvSpirit well, you could just copy paste it to your project and use, in case you need an in memory resource |
Example with the current API for 4.x https://github.com/jtwig/jtwig-examples/blob/master/simpleapp-jtwig-4.x/src/main/java/org/jtwig/example/SimpleApp.java |
Is this still open for discussion? Or should the ticket be closed? |
I wish there was a feature to populate a template and give out a string to send as an email. I had to resort to Velocity for that purpose while all my front end is using jtwig. Do you have anything under development for that or I can work on it.
The text was updated successfully, but these errors were encountered: