例如,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.
利用定制标记和模板,这样可以将应用程序的图形表示层和处理分隔开来。
This, along with the custom tags and templates, separates the graphical presentation of the application from the processing.
如图5所示,我们使用模板将这些上下文的结构和样式与创建数据的模块分隔开。
As shown in Figure 5, we used templates to separate the structure and styling of these contexts from the modules creating the data.
在我的例子中,我使用TestStudio作为模板,并解释了如何定制此模板,来按照提交者来分隔缺陷记录。
In my example, I use TestStudio as the template, and explain how to customize this template to isolate defect records by submitter. The general steps are as follows.
如果你提供多个YAML文档(用—来分隔),模板会渲染多次。
If you provide multiple YAML documents (as delimited by -), your template will be rendered multiple times.
模板子类可以指定一个自定义分隔符。
模板子类可以指定一个自定义分隔符。
应用推荐