例如,php脚本可能使用一个模板引擎把业务逻辑与表示分隔开,它可以被看作单独的两层。
For example, a PHP script might use a template engine to separate business logic from the presentation, and be considered two separate tiers.
如果要对多个模板应用相同的设置,可以指定一个以逗号分隔的模板名列表。
If the same Settings apply to several templates, you can specify a comma-separated list of template names.
我们发现,最好是将数据生成放在模块中,将 xHTML 生成放在模板中,这样有助于分隔数据和显示。
We found it helpful to keep the data production within the module and xHTML production within the templates to preserve the separation of data and presentation.
应用推荐