Introduction to the latest ten template engines

零下一度
Release: 2017-06-25 09:40:45
Original
1725 people have browsed it

1) Jade

Jade is a JavaScripttemplate engine with a complete API and amazing features. Write HTML pages using whitespace and indentation-sensitive code formats. Based on Node.js, running on the server side.

Introduction to the latest ten template engines

2) Mustache

Mustache is a logic-less (no logic or light logic) syntax template. Can be used to organize anything including HTML, configuration files, and source code. Mustache uses the value of a JavaScript object to expand brace tags in template code.

3) Transparency

Transparency is a powerful client-side template engine used to bind data to the BOM structure of the Web page. Its templates require no special formatting and are directly compliant with HTML. Use JavaScript logic directly, no need to learn a new special "template language". Compatible with IE9+, Chrome, Fx, iOS, Android and other browsers.

Introduction to the latest ten template engines

4) Underscore.js

Underscore.js is a JavaScript library that provides a series of practical utility functions (helpers). Underscore.js only works independently as an additional utility function and does not extend (pollute) any JavaScript built-in objects themselves.

5) Embeddedjs

EJS helps developers effectively separate JavaScript and HTML parts by mixing JS/HTML through tags similar to PHP.

6) DoTjs

The fastest and most concise JavaScript template engine for both Node.js and browsers.

7) Handlebarsjs

A set of semantic template engines. Compatible with Mustache.

8) T.js

A template engine that uses simple JavaScript data structures to render html/xml content.

9) Dustjs

A set of asynchronous template engines that can be used in both browsers and Node.js.

10) Nunjucks

Nunjucks is a feature-rich template engine. The template language is powerful and supports block inheritance, automatic escaping, macros, asynchronous control and other functions.

The above is the detailed content of Introduction to the latest ten template engines. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!