NSmarty - 模板函数
block和extends - 模板继承
内置扩展
函数
capture
this will be {capture name='cap1'}
captured:
{for $i=1 to 10}
{$i}
{/for}
{/capture} not capture.<br/><br/>
{$smarty.capture.cap1}
输出结果:
this will be not capture.
captured: 1
2
3
4
5
6
7
8
9
10