3 ms·
There is a Twig port in js: https://github.com/justjohn/twig.js/wiki https://github.com/justjohn/twig.js/wiki that i've had some luck experimenting with. It doe
by krapp 14y ago
There is a Twig port in js: https://github.com/justjohn/twig.js/wiki https://github.com/justjohn/twig.js/wiki that i've had some luck experimenting with. It doesn't support macros yet but given that it's in javascript I don't see why it should.
Also (and I hope I don't get downvoted because this is ugly) I have made basic templates work using ajax and this sprintf for js (http://www.diveintojavascript.com/projects/javascript-sprintf http://www.diveintojavascript.com/projects/javascript-sprint...) but that may be far more basic than your environment would accept.