返回排行榜

goofychris/art-template

JavaScriptgoofychris.github.io/art-template/

High performance JavaScript templating engine

template-enginejavascriptnodejskoaexpresswebpack
Star 增长趋势
Star
9.9k
Forks
2.6k
周增长
Issues
89
5k
2012年9月2017年4月2021年12月2026年7月
制品库npmnpm install art-template
README

⚠️ 项目已停止维护 / No Longer Maintained

中文: 由于精力有限,无法继续投入维护,本项目自 2026 年 7 月 13 日起停止维护, 不再提供任何功能更新、问题修复或安全补丁。 请勿在生产环境中继续使用本项目,并尽快迁移到其他仍在积极维护的替代方案。 仍在依赖本项目的用户,建议尽早移除或替换该依赖。 感谢一直以来的使用与支持。

English: Due to limited time and capacity, this project is no longer maintained as of July 13, 2026. It will receive no further feature updates, bug fixes, or security patches. Please do not use it in production, and migrate to an actively maintained alternative as soon as possible. Projects that still depend on it are strongly advised to remove or replace this dependency. Thank you for your past use and support.

art-template

NPM Version NPM Downloads Node.js Version Travis-ci Coverage Status

English document | 中文文档

art-template is a simple and superfast templating engine that optimizes template rendering speed by scope pre-declared technique, hence achieving runtime performance which is close to the limits of JavaScript. At the same time, it supports both NodeJS and browser. speed test online.

art-template 是一个简约、超快的模板引擎。它采用作用域预声明的技术来优化模板渲染速度,从而获得接近 JavaScript 极限的运行性能,并且同时支持 NodeJS 和浏览器。在线速度测试

chart

Feature

  1. performance is close to the JavaScript rendering limits
  2. debugging friendly. Syntax errors or runtime errors will be positioned accurately at which line of template. Support setting breakpoint in templating files (Webpack Loader)
  3. support Express, Koa, Webpack
  4. support template inheritance and sub template
  5. browser version is only 6KB

特性

  1. 拥有接近 JavaScript 渲染极限的的性能
  2. 调试友好:语法、运行时错误日志精确到模板所在行;支持在模板文件上打断点(Webpack Loader)
  3. 支持 Express、Koa、Webpack
  4. 支持模板继承与子模板
  5. 浏览器版本仅 6KB 大小
相关仓库
pallets/jinja

A very fast and expressive template engine.

PythonPyPIBSD 3-Clause "New" or "Revised" Licensepythontemplate-engine
jinja.palletsprojects.com
11.7k1.8k
twigphp/Twig

Twig, the flexible, fast, and secure template language for PHP

PHPPackagistBSD 3-Clause "New" or "Revised" Licensetwigphp
twig.symfony.com
8.4k1.3k
lets-blade/blade

:rocket: Lightning fast and elegant mvc framework for Java8

JavaMavenApache License 2.0mvc-frameworkrestful
lets-blade.github.io
5.9k1.2k
Keats/tera

A template engine for Rust based on Jinja2/Django

Rustcrates.ioMIT Licensetemplate-enginejinja2
keats.github.io/tera/
4.3k330
forwardemail/email-templates

Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.

JavaScriptnpmMIT Licensenodejsemail
forwardemail.net/docs/send-emails-with-node-js-javascript
3.7k333
valyala/quicktemplate

Fast, powerful, yet easy to use template engine for Go. Optimized for speed, zero memory allocations in hot paths. Up to 20x faster than html/template

GoGo ModulesMIT Licensegolangtemplate-engine
3.3k146
mikeric/rivets

A lightweight data binding library.

JavaScriptnpmMIT Licensejavascriptcoffeescript
3.2k301
flosch/pongo2

Django-syntax like template-engine for Go

GoGo ModulesMIT Licensetemplatego
pongo2.dev
3.1k284
docpad/docpad

Empower your website frontends with layouts, meta-data, pre-processors (markdown, jade, coffeescript, etc.), partials, skeletons, file watching, querying, and an amazing plugin system. DocPad will streamline your web development process allowing you to craft powerful static sites quicker than ever before.

CoffeeScriptOtherdocpadcoffeescript
docpad.bevry.me
3k234
thymeleaf/thymeleaf

Thymeleaf is a modern server-side Java template engine for both web and standalone environments.

JavaMavenApache License 2.0javatemplate-engine
thymeleaf.org
3k517
microsoft/TemplateStudio

Template Studio accelerates the creation of new WinUI 3, WPF, and UWP apps using a wizard-based experience.

Rich Text FormatOthercsharpuwp
2.8k469
manifold-systems/manifold

Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.

JavaMavenApache License 2.0javaintellij
manifold.systems
2.8k134