0.2.0 • Published 9 years ago

gulp-tmplt v0.2.0

Weekly downloads
1
License
Apache 2.0
Repository
github
Last release
9 years ago

gulp-tmplt

Html partials in jst.

Install

Install with npm

npm install --save-dev gulp-tmplt

Usage

cd src/
mkdir splash && cd splash

touch _header.html
touch _content1.html
touch _content2.html
touch _content3.html
touch _footer.html
touch index.tmpl

cat <<EOT >> index.tmpl
<!DOCTYPE html>
<html><head><title></title></head>
<body>

  <%= header %>
  <%= content1 %>
  <%= content2 %>
  <%= content3 %>
  <%= footer %>

</body>
</html>
EOT
var tmpl   = require('gulp-tmpl');

gulp.task('html', function(){

  gulp.src('src/**/index.tmpl')
    .pipe(tmpl())
    .pipe(gulp.dest('./public/'));

});

License

Apache 2.0 (c) Will O'Brien 2015

0.2.0

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.0

9 years ago