gulp-octet

Compile octet templates. Gulp plugin for octet - Javascript template engine in just 20 lines - used in AbsurdJS

Compile octet templates. Gulp plugin for octet - Javascript template engine in just 20 lines - used in AbsurdJS

npm install gulp-octet
npm test

For more use-cases see the tests

src/greeting.html

<h1>Hello <strike><%this.name%></strike></h1>

gulpfile.js

var gulp = require('gulp');
var octet = require('gulp-octet');
 
gulp.task('default', function () {
  return gulp.src('src/greeting.html')
    .pipe(octet({name: 'Charlike'}))
    .pipe(gulp.dest('dist'));
});

dist/greeting.html

<h1>Hello <strike>Charlike</strike></h1>

Charlike Mike Reagent

License

Copyright (c) 2014 Charlike Mike Reagent, contributors.
Released under the MIT license.


Powered and automated by readdirp + hogan.js, December 30, 2014