将闭包模板嵌套在另一个模板中

Ism*_*ilS 3 nested google-closure google-closure-templates

我确信应该有一些方法可以在模板中渲染另一个模板,所以我不必复制粘贴相似的块.我只是无法搞清楚.

Ism*_*ilS 5

我想到了.

{call .templateName /}
Run Code Online (Sandbox Code Playgroud)

  • 如果其他人在将来找到此主题,则以下是所有功能:http://code.google.com/p/closure-templates/source/browse/trunk/examples/features.soy (4认同)