Suppose I have a gsp snippet stored in my database. How do I programmatically merge it with a data model to produce a string.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The applicationContext of any Grails app contains a bean named
By default this is a instance of GroovyPagesTemplateEngine. So you might use code like this in your controller or service:
NB: this snippet is not really taken from running code, it should just clarify the idea.