Revision: 10492
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 2, 2009 11:05 by callmeblessed
Initial Code
class MyController {
def test = {
def x = g.render(template:"/basecontroller/test",model:[name:"wysmedia.com"]); // stored as string ...
render(x); // display the template instead render
}
}
Initial URL
www.wysmedia.com
Initial Description
how to render GSP template as String ? g:render is taglib in gsp (<g:render> ) but you can call it on your controller using g.render().
Initial Title
Grails: render template as String
Initial Tags
template, groovy
Initial Language
Groovy