Review
- 2022/11/18
- 2023/04/19
- 2024-08-17 13:12
[!Summary]
一、Introduction #
- Art-template https://github.com/aui/art-template
- doT https://github.com/olado/doT
- JavaScript-Templates
- Template.js
- Tempo
- ECT
- Dot Dom
- Template7
- Bunny
- Squirrelly
- Handlebars https://github.com/handlebars-lang/handlebars.js
- EJS https://github.com/mde/ejs
- Hogan.js https://twitter.github.io/hogan.js/
- Pug(Jade) https://github.com/pugjs/pug
- jSmart https://github.com/umakantp/jsmart
- ERB
- Slim
- Jinja
- Liquid
- Nunjucks
- Vash
- HAML
- Marko https://github.com/marko-js/marko
其他语言的模板语法实现
- PHP
- JSP
- smarty
- Mustache
- DTL(Django Template Language)
- Thymeleaf(Java)
EJS #
EJS is a templating language or engine that allows you to generate HTML markup with pure JavaScript. And this is what makes it perfect for Nodejs applications. In simple words, the EJS template engine helps to easily embed JavaScript into your HTML template.
Pug #
Pug is a JavaScript template engine. It is a high-performance template engine heavily influenced by Haml and implemented with JavaScript for Node.js and browsers. Pug was formerly called Jade.
Marko #
Marko is a fast and lightweight HTML-based templating engine that compiles templates to CommonJS modules and supports streaming, async rendering, and custom tags. It is HTML re-imagined as a language for building dynamic and reactive user interfaces.