gulp-ergate-compiler
A plugin for gulp to use ergate-complier to parse template file
Usage
First, install:
npm install --save-dev gulp-ergate-compiler
Then create ergate-complier-conf.js
:
// this configure is to parse ejs// so you need to install ejsconst ejsConf = moduleexports = tagName: 'ejs' conf: ...ejsConf template: button: 'example/button'
Finally, add this plugin to your gulpfile.js
const gulp = const compiler = const rename = exports { return gulp }
API
compiler(options)
the options is the options of ergate-complier
's new Parser(options)