gulp-json-template-christacheio
"Template your json files in gulp really, really easily"
Last updated 5 years ago by octoblu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-json-template-christacheio 
SYNC missed versions from official npm registry.

gulp-json-template-christacheio

===========

Do you want to template json files in a simple and easy way? Well, there's a million ways to do that!

Here's another one.

Usage

var ChristacheioStream = require('gulp-json-template-christacheio');

var templateData = { "benevolent-overlord": "skynet", "presidential-candidate": "Mr T. Entacle"}
christachioStream = new ChristachioStream({ data: templateData })

gulp.task('task', function() {
 return gulp.src('template.json', { read: false }) // much faster
   .pipe(ignore('node_modules/**'))
   .pipe(christachioStream());
});

This would take a json template like this:

{
   "statement": "I could never be afraid of {{benevolent-overlord}}",
   "voting-for": "{{presidential-candidate}}"
}

And produce:

{
  "statement": "I could never be afraid of skynet",
  "voting-for": "Mr T. Entacle"
}

Good luck out there.

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

1 Versions

  • 1.0.0                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |