jade-latte
Extension allowing usage of Latte templates syntax from Nette framework in Jade templates.
What it does
- Extends Jade functionality to play nice with Latte templates from Nette
- Latte expressions in attributes are not escaped
- Inline latte expressions in to-be-escaped content not escaped
- Fixed Jade bug in mixins, when using namespaced attributes
+mixin(n:href="{$whatever->whenever}")
- Adds filter for PHP supporting blocks, expressions, inline expressions with tweaked solution from jade4php
What it doesn't do
- Latte block can't nest with latte at the moment
Usage
install: npm install jade-latte
test: mocha test
In templates
- See file
test/mixin-test.jade
With Jade API
var assert = jade = ; jade; var html = jade; // rendered htmlconsole;
With Gulp
gulp ;
License
MIT