首页
开发手册
应用中心
工具
用户中心
Ease Template Make up Function
English
中文简体
English
上一篇
下一篇
### Ease Template Make up Function Ease Template does not provide much syntax for extremely high efficiency. However, some special occasions need to solve the problem of customizing a method, and the compensation function is specially provided. For example: {run:phpinfo()} is equivalent to **Make up Function Usage:** {run: PHP program} Single-line application, does not support braces, so it is only suitable for some simple applications test_9.php ``` set_file('test_9'); $tpl->p(); ?> ``` A particularly multi-style usage is made below test_9.htm ``` time processing:{run:echo date('Y/m/d H:i',time());} conditional judgment:{run:echo ($a==1)?'成立':'失败';} ``` Although Ease Template provides compensation functions, it is not recommended to use them in large quantities. Because after a lot of analysis, using too much in this way will increase the difficulty of reading the view code, and also lose the meaning of simplicity and efficiency of the template.