Several common template engines of PHP

Source: Internet
Author: User

The dynamic code is completely separated from the front-end code. The template only contains pure front-end code (html, css) and the identifier that replaces the dynamic code. Pure dynamic code is written in the core, but there is a parameter that matches the code block with the identifier in the template and matches the two through the parsing program. This parsing program isTemplate engine. The following describesPHPCommon Template engines.

1. Smarty

Smarty is characterized by compiling templates into PHP scripts and then executing these scripts. Fast and flexible.

2. Heyes Template Class

A very easy-to-use, but powerful and fast template engine helps you separate page layout and design from code.

3. FastTemplate

A simple variable interpolation template class that analyzes your template and separates variable values from HTML code.

4. ShellPage

A simple and easy-to-use class allows you to change the overall website layout based on the template file by modifying the template.

5. STP Simple Template Parser

A simple, lightweight, and easy-to-use template analysis class. It can assemble a page from multiple templates and output the result page to a browser or file system.

6. OO Template Class

A cash-oriented template class that you can use in your programs.

7. SimpleTemplate

A template engine for creating and structuring websites. It can parse and compile templates.

8. bTemplate

A short but fast template class allows you to separate the PHP logic code from the HTML modifier code.

9. Savant

A powerful and lightweight PEAR compatible template system. It is non-compiled and uses PHP as its template language.

10. ETS-easy template system

You can use a template system with identical data restructuring templates.

11. EasyTemplatePHP

A simple but powerful template system for your site.

12. vlibTemplate

A fast and all-powerful template system that contains a cache and debugging class.

13. AvanTemplate

The multi-byte secure template engine occupies a small amount of system resources. It supports variable replacement, and content blocks can be displayed or hidden.

14. Grafx Software's Fast Template

A modified version of the Fast Template system, which includes the cache function, the debugging console, and the silent removal for the assigned block.

15. TemplatePower

A fast, simple, and powerful template class. The main functions are nested Dynamic Block support. Blocks/files include support and show/hide unassigned variables.

16. TagTemplate

The functions of this library are designed to use template files and allow you to retrieve information from HTML files.

17. htmltmpl: templating engine

A template engine for Python and PHP. It is intended for web application developers who want to separate code and design in projects.

18. PHP Class for Parsing Dreamweaver templates

A simple class for analyzing Dreamweaver templates is used in the Custom modules of Gallery 2 and WordPress.

19. MiniTemplator (Template Engine)

A compact template engine for HTML files. It has simple syntax for template variables and block definitions. Blocks can be nested.

20. Layout Solution

Simplify website development and maintenance. It has common variables and page elements so that you do not need to repeat page layout.

21. Cached Fast Template

It has been incorporated into FastTemplate, allowing you to cache template files, or even cache different specifications on Separated block content.

22. TinyButStrong

A template engine that supports MySQL, Odbc, SQL-Server, and ADODB. It contains 7 methods and two attributes.

23. Brian lojies' php based template engine

Only 2 k size, very fast and object-oriented design.

24. WACT

A template engine that separates code from the design.

25. PHPTAL

An XML/XHTML Template Library under PHP.

We hope that the summary above will help you.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.