返回列表

template

默认分类 2014/05/18 22:10

http://juicer.name/docs/docs_zh_cn.html

http://ecomfe.github.io/etpl/

<!-- var: name = "errorrik" -->
Hello #{name}!

<!-- if: #{num} === #{str} -->
same type and value
<!-- elif: #{num} == #{str} -->
different type same value
<!-- else: -->
different value
<!--/if-->


<ul>
<!-- for: #{p} in #{persons} -->
    <li>#{p.name} #{p.email}</li>
    <!-- use: item(main=#{p.name}, sub=#{p.email}) -->
<!-- /for -->
</ul>
<!-- target: item --><li>#{main} #{sub}</li>