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

Popular posts from this blog

c# - IMAP GMAIL getting folder list problem -

PHP proxy to get XML: problem with URL arguments -