latte-engine
v4.4.0
Published
LatteJS is javascript templating engine based on Nette's Latte Template Engine.
Downloads
13
Maintainers
Readme
LatteJS - Latte template engine in JavaScript
LatteJS is a port of Nette's Latte PHP Template Engine to Javascript, a JavaScript template library that supports the template syntax and all the features (functions, variable modifiers, etc.) of the well-known PHP template engine Latte.
LatteJS is written entirely in JavaScript, does not have any DOM/browser or third-party JavaScript library dependencies and can be run in a web browser as well as a standalone JavaScript interpreter or CommonJS environments like node.js.
LatteJS supports plugin architecture, you can extend it with custom plugins: functions, blocks and variable modifiers, templates inclusion, templates inheritance and overriding, caching, escape HTML.
LatteJS has some limited support of the PHP Latte syntax and allows you to use the same Latte templates on both server and client side, for both PHP and Javascript.
DOCUMENTATION
https://github.com/pfaciana/latte-js/wiki
TESTS
Test cases:-
grunt karma
ES Lint tests:-
grunt eslint
Run lint, run test, build, compress, distribution package and update examples in one command:-
grunt
LICENSE
NOTICE
Project originally was created by miroshnikov. Since author was not active on project very frequently. I have forked and planned on pushing further improvements and features on my own fork.