json - Get template rendered from controller without render yet -
i want return response json ajax containing more atributtes instead template:
default:
render(template:"/templates/question",model:[question: question])
..and want like:
def template = *get*(template:"/templates/question",model:[question: question]) render [template:template, istemplate: true] json
is possible? thanks
then solution is:
class mycontroller { def test = { // stored string ... def x = g.render(template:"/basecontroller/test",model:[name:"wysmedia.com"]); render(x); // display template instead render } }
Comments
Post a Comment