这些模板系统都有两个重要的缺点。
本文将描述模板系统可以解决的问题。
This article describes the problems that templating systems solve.
为什么要使用模板系统?
由于上述这些原因,开发人员转向模板系统。
这些模板系统没有流控制——没有循环或条件。
These template systems have no flow control — no loops or conditionals.
这个模板系统与其他解决方案相比似乎太复杂了。
The templating system also seemed very complex compared to other solutions.
一旦请求通过了模板系统,输出就会返回到浏览器。
Once the request has been through the templating system, the output is then returned to the browser. Here's a summary of the process.
最后,设计了一个突发事件应急反应模板系统。
OpenSearch规范了定义了这种URL模板系统。
The OpenSearch specification defines this URL template system.
根据这一经验法则,您应该畅通无阻地获取模板系统的好处。
Follow this rule of thumb, and you should have no trouble reaping the benefits of this templating system.
多数可用于Python的附加模板系统试图弥补这两个缺点。
Most of the add-on template systems available for Python intend to address these two shortcomings.
Cacti基于模板系统,这使得对图表进行大量更改更容易。
Cacti is based on a system of templates, which makes mass changes to graphs much easier.
请记住,模板系统的目标是将文档的动态部分与其静态部分分离。
Remember the goal behind templating systems: separate the dynamic parts of a document from its static description.
自从我开始使用Rails,我发现模板系统总是特别难以掌握。
Ever since I began working with Rails, I've always found the templating system difficult to get to grips with.
通过它可以建立更大的模板系统,同时又降低了每个模板的复杂性。
With it, you can have much larger template systems while you reduce the complexity of each template.
Template提供了一个简单的包含各种显示选项的模板系统。
Formatter: : Template provides a simple templating system for renderer options.
在一个使用HTML、CSS和PHP的模板系统中分离内容和样式。
Separation of content from styling in a templating system that USES HTML, CSS, and PHP.
因此,模板系统必须将表单与函数分离,但还必须在两者之间建立联系。
Hence, a template system must separate form from function, yet also bridge the divide.
Python 提供了少许内置模板系统,它们在简单情况下工作得很好。
Python comes with a few built-in templating systems, which work well in simple cases.
注意,您会很自然地在Ruby编程语言的功能的基础上扩展模板系统的功能。
Notice that you're naturally extending the capabilities of the template system, based on the capabilities of the Ruby programming language.
注意,Django 的模板系统不允许直接从模板执行Python代码。
It's important to note that Django's template system does not allow Python code to be executed directly from the template.
模板系统允许您将文本的静态部分表示为一个模板定义,并与动态部分分开存储和管理。
A templating system lets you represent the static portion of a text as a template definition, stored and managed separately from the dynamic portion.
我们的目标是向您介绍pde的模板系统,而这一目标通过一个亲手实践的示例实现了。
Our goal was to introduce you to PDE's templating system, and this was accomplished with a hands-on example.
在生成示例模板的第一部分时,cheetah比python的内置模板系统更好用。
Cheetah is better than Python's built-in templating systems at generating the first part of the sample template.
如果没有模板系统,那么就要使用Python代码生成类似示例电子邮件消息的文本片段。
Without a templating system, you'd use Python code to generate pieces of text like the example E-mail message.
本文假定您具备Python 方面的基础知识,但不具备模板系统及其用处方面的知识。
The article assumes you have a basic knowledge of Python, but no knowledge of templating systems or what they're used for.
StrutsTiles模板系统用于确保花费在让Web应用程序外观正常上的工作最少。
The Struts Tiles template system was used to ensure that minimal effort was spent making the Web application look the way it does.
如果您觉得PDE模板系统缺少某些区域,我们十分乐意收到Bugzilla条目形式的反馈。
If you feel that the PDE templating system is lacking in certain areas, we gladly take feedback in the form of Bugzilla entries.
模板系统是一个典型的基于选项卡的系统,它完全可以与其他blog发布平台相匹敌。
The templating system is a typical tag-based system, which compared well with other blog publishing platforms.
模板系统是一个典型的基于选项卡的系统,它完全可以与其他blog发布平台相匹敌。
The templating system is a typical tag-based system, which compared well with other blog publishing platforms.
应用推荐