HTL gulp plugin
$ npm install --save-dev gulp
$ npm install --save-dev gulp-htl
For the example below you'll also need
$ npm install --save-dev gulp-rename
const gulp = require('gulp');
const rename = require('gulp-rename');
const htl = require('gulp-htl');
gulp.task('default', () =>
gulp.src(['src/**/*.html', '!src/**/*.spec.html'])
.pipe(htl())
.pipe(rename({extname:'.spec.html'}))
.pipe(gulp.dest('src'))
);
Thanks to LatourJ for working out some of the quirks the HTL compiler in their project
MIT © Cerys Williams