首页
开发手册
应用中心
工具
用户中心
Ease Template Template Reference
English
中文简体
English
上一篇
下一篇
### Ease Template Template Reference For example, when you need to introduce a list of articles on the development homepage, you can directly write {inc:template name} to import the template. When the program is executed, the referenced template will be displayed in the corresponding position. Isn't it simple? Ease Template Considering various compatibility, three syntaxes are given: concise usage: `{inc:test_12}` annotation usage: `` Compatible with Dreamweaver import file usage: (remember to add template format) `` The following examples will list the various syntax methods for referencing templates. test_12.php ``` set_file('test_12'); $tpl->p(); ?> ``` The template file read by the main program. This template refers to the template three times, corresponding to the three syntaxes. view/test_12.htm ``` This is a simple{test}. import template:test_2.htm {inc:test_2} import template:test_12_1.htm {inc:test_12_1} Dreamweaver grammar introduction template:test_12_1.htm ``` view/test_12_1.htm ``` Introduced the file test_12_1.htm ```