1
我想回到我的反应是JSON与含有较多atributtes而不是只有模板的ajax:获取从控制器输出而不渲染模板尚未
默认:
render(template:"/templates/question",model:[question: question])
..和想要的东西,如:
def template = *get*(template:"/templates/question",model:[question: question])
render [template:template, isTemplate: true] as JSON
这可能吗? 感谢
通常你会使用JSONBuilder和模板不会真正走进画面。也许我误解你的问题... – proflux 2011-02-17 20:11:34