比方说,有鉴于文件夹2个阶模板获取斯卡拉模板
- file1.scala.html
- container.scala.html
现在我想将第一个模板传递给控制器的第二个模板(container.scala.html)。像:
public class Application extends Controller {
static Result isItPossible()
{
Result theFile=ok(file1.render());
return ok(container.render(theFile));
}
}
这可能吗?如果是这样,我该怎么做?