Themeleon Swig
Warning: this repository/package is deprecated, template engines will be handled by consolidate.js in Themeleon 3.0.
Installation
In your package.json
:
Usage
var themeleon = ; // Use the Swig mixinthemeleon; // Or inject your own instancethemeleon; moduleexports = ;
Using Twig extras
// Create a local Swig instance instead of altering the globale onevar swig = new Swig; var extras = ; // Moar filtersvar themeleon = ; // No change here // Use some additional filtersextras;extras;extras;extras; // Even add your own filtersswig; // Tell Themeleon to use your own Swig instancethemeleon;