A preprocessor that enhances HTML
NOTE: ETML IS AN IN-PROGRESS PROJECT. DOCUMENTATION FOR ETML-API AND NODE-ETML IS STRICTLY FOR POST-RELEASE AND SHOULD NOT BE REFERENCED DURING CURRENT DEVELOPMENT. NEITHER MODULES ARE AVAILABLE ON NPM AS OF YET.
This is a module that allows for etml usage within Node. For etml docs, visit etml-api. To report an issue/suggestion, please do it here.
For etml usage with Grunt, visit grunt-etml.
npm install node-etml
Including the module
var etml = require('node-etml');Running etml
// to compile etml on the fly (returns with HTML string)
etml.src(src, options);
// to compile one file
etml.file('path/to/src/file.etml', 'path/to/dest/', options);
// to compile all .etml files in a directory
etml.file('path/to/src/', 'path/to/dest/', options);Type: Boolean
Default value: true
When this is set to true, it will use better-fs-errors for its filesystem error reporting.