RELATED SEARCHES
Sponsored Template Engine Results:
Template Engines
By:
Published: November 1, 2006
Web template systems consist of two components: a template engine and template language standards.
Template language is the syntax used to express variables, blocks, rules and logic. The template engine is characterized by the Web template and content resource. Generally speaking, if the Web document utilizes static documents, a template engine is not used since the documents are pure html files. However, in the case of a dynamic Web page, template engines are utilized to their fullest capacity.
What is a Template Engine?
The template engine is software used to process Web templates and content information. There are many reasons why Web developers use template engines. Primarily, template engines produce dynamic Web content on the fly, meaning as per user request. The process begins when a user types a page request in the URL. This request goes to the engine where a page is immediately generated and is then returned to the browser where it is displayed in html code.
The Purpose of Templates
The reasoning behind the use of templates is two-fold: Web developers primarily use the template because it separates the content of a document (written in HTML) from the presentation or look of that same document (written in PHP); they also use the template model to separate business logic from presentation logic. The template engine separates the two, but also facilitates the separation of a complex code, like PHP, from a simple code, like HTML. The separation allows the presentation and the contents of the document to be modified separately and at the same time. Since the two are separate, site redesign is simplified.
Types of Template Engines
1. Caching- A cache is a place for temporary or permanent file storage. Template engines with this option cache the templates for the Web author so they do not have to recompile with each page request. This is a good option for high-traffic sites as it speeds up data transfer. However, it can affect the way a site operates. Sometimes, cache settings will reflect how often information is updated rather than display this information dynamically.
2. Compiling- Smarty is one of the most popular template engines among Web developers today. It compiles templates by converting the syntax of template files into PHP code (a template engine in itself) before it is displayed on the browser. Another compiling engine is the Savant engine. Some advocate this engine because it builds syntax around PHP code rather than using an extra scripting language to convert the code.
3. XSLT- This template engine was designed by W3C in the hopes of truly being able to separate content from presentation. It is mostly used for XML documents.
Sources:
Template Engine. 14 October 2006. Wikipedia. 1 November 2006. http://en.wikipidis.org/wiki/template_engine/
Lozier, Brian. Template Engines. 25 July 2006. BlueCrestStudios, LLC. 1 November 2006. http://www.codeandcoffee.com/2006/07/25/template-e ngines/
Web Template System. 28 October 2006. Wikipedia. 1 November 2006. http://en.wikipedia.org/wii/web_template_system/
Template language is the syntax used to express variables, blocks, rules and logic. The template engine is characterized by the Web template and content resource. Generally speaking, if the Web document utilizes static documents, a template engine is not used since the documents are pure html files. However, in the case of a dynamic Web page, template engines are utilized to their fullest capacity.
What is a Template Engine?
The template engine is software used to process Web templates and content information. There are many reasons why Web developers use template engines. Primarily, template engines produce dynamic Web content on the fly, meaning as per user request. The process begins when a user types a page request in the URL. This request goes to the engine where a page is immediately generated and is then returned to the browser where it is displayed in html code.
The Purpose of Templates
The reasoning behind the use of templates is two-fold: Web developers primarily use the template because it separates the content of a document (written in HTML) from the presentation or look of that same document (written in PHP); they also use the template model to separate business logic from presentation logic. The template engine separates the two, but also facilitates the separation of a complex code, like PHP, from a simple code, like HTML. The separation allows the presentation and the contents of the document to be modified separately and at the same time. Since the two are separate, site redesign is simplified.
Types of Template Engines
1. Caching- A cache is a place for temporary or permanent file storage. Template engines with this option cache the templates for the Web author so they do not have to recompile with each page request. This is a good option for high-traffic sites as it speeds up data transfer. However, it can affect the way a site operates. Sometimes, cache settings will reflect how often information is updated rather than display this information dynamically.
2. Compiling- Smarty is one of the most popular template engines among Web developers today. It compiles templates by converting the syntax of template files into PHP code (a template engine in itself) before it is displayed on the browser. Another compiling engine is the Savant engine. Some advocate this engine because it builds syntax around PHP code rather than using an extra scripting language to convert the code.
3. XSLT- This template engine was designed by W3C in the hopes of truly being able to separate content from presentation. It is mostly used for XML documents.
Sources:
Template Engine. 14 October 2006. Wikipedia. 1 November 2006. http://en.wikipidis.org/wiki/template_engine/
Lozier, Brian. Template Engines. 25 July 2006. BlueCrestStudios, LLC. 1 November 2006. http://www.codeandcoffee.com/2006/07/25/template-e ngines/
Web Template System. 28 October 2006. Wikipedia. 1 November 2006. http://en.wikipedia.org/wii/web_template_system/
Featured Template Engine Products: