【发布时间】:2013-04-19 11:15:25
【问题描述】:
有没有nodejs模板引擎支持PHP Smarty这样的模板继承功能?
{block name=head}
default layout content
{/block}
{block name=head}
if page have customize the content it display the customize content, otherwise display the layout content
{/block}
【问题讨论】:
-
jade 很棒,将支持通过 extends 关键字继承!
-
看看 atpl:github.com/soywiz/atpl.js - 它基于 php 的 twig 并具有完整的继承支持
标签: node.js smarty template-engine template-inheritance