【发布时间】:2012-05-11 12:20:23
【问题描述】:
在play framework 1.2.4 Controller中,是否可以在输出到浏览器之前将模板或标签的内容作为String获取?
我希望能够做到这一点:
String json = renderAsString("/path/to/template.json", var1, var2);
//then use json as the body of a Play.WS request body.
【问题讨论】:
标签: templates playframework playframework-1.x