simples-engineer
is a tool to connect incompatible template engines to simpleS servers and hosts.
simpleS 0.8+
Recommended forInstalation
npm install simples-engineer
List of supported template engines
- blade
- ejs 2.0+
- hamljs
- jade
- swig
- twig
- If the template engine is compatible with
Express
thensimples-engineer
will support it - You can add support for your template engine with a pull request
Usage
var simples = engineer = ; var server = ; // For bladevar engine = ; // For ejsvar engine = ; // For hamljsvar engine = ; // For jadevar engine = ; // For swigvar engine = ; // For twigvar engine = ; // For any other template engine which is compatible with Expressvar engine = ; // Connect the template engine to the serverserver;
simples-engineer
will require the template engine module, will check if they are supported and will apply a compatibility layer to them so they work well with simpleS
's insternal rendering sytem. Engine options are template engine specific options which can be applied on rendering. Note: the template engine module which you want to use with simples-engineer
should be already installed.