文法が Jinja2, Twig, Liquid タイプの JavaScript のテンプレートエンジンの各種開発状況 / ツールのまとめです。
文法、実装言語、lint、bundler、test、coverage、メンテナンスの7軸で比較しています。
atpl
- github: https://github.com/soywiz/atpl.js
- 文法: Twig
- 実装言語: TypeScript
- lint: なし
- bundler: なし (バンドルしてない)
- test: mocha
- coverage: なし
- メンテナンス: 継続
nunjucks
- github: https://github.com/mozilla/nunjucks
- 文法: Jinja
- 実装言語: JavaScript
- lint: jshint
- bundler: webpack + 独自スクリプト
- test: mocha
- coverage: istanbul
- メンテナンス: 継続 (Mozilla)
swig
- github: https://github.com/paularmstrong/swig
- 文法: Jinja
- 実装言語: JavaScript
- lint: nodelint
- bundler: browserify
- test: mocha
- coverage: blanket
- メンテナンス: 終了
twig.js
- github: https://github.com/twigjs/twig.js
- 文法: Twig
- 実装言語: JavaScript
- lint: なし
- bundler: webpack
- test: mocha
- coverage: なし
- メンテナンス: 継続
liquid.js
- github: https://github.com/mattmccray/liquid.js/tree/master
- 文法: Liquid
- 実装言語: JavaScript
- lint: なし
- bundler: sprockets
- test: 独自 runner (!)
- coverage: なし
- メンテナンス: 終了
liquid-node
- github: https://github.com/sirlantis/liquid-node
- 文法: Liquid
- 実装言語: CoffeeScript
- lint: coffeelint
- bundler: なし (バンドルしてない)
- test: mocha
- coverage: jscoverage
- メンテナンス: 不明
shopify-liquid
- github: https://github.com/harttle/shopify-liquid
- 文法: Liquid
- 実装言語: JavaScript
- lint: なし
- bundler: なし (バンドルしてない)
- test: mocha
- coverage: istanbul
- メンテナンス: 継続
個人的には開発主体の安定感 (Mozilla) から nunjucks に一番期待していますが、出来たばかりでメンテンナンスもやる気がありそうな shopify-liquid にも期待しています。