Skip to content

Apply the configuration data to the file contents(treat it as the template).

License

Notifications You must be signed in to change notification settings

snowyu/task-registry-file-template.js

Repository files navigation

task-registry-file-template npm

Build Status Code Climate Test Coverage downloads license

Apply the configuration data to the file contents(treat it as the template). It can specify a template engine. The default template engine will be apply if no specified.

Usage

Task    = require 'task-registry'
require 'task-registry-file-template'

template = Task 'template'

###
hi.md:
the file path is '#{path}'.
#{hi}
###
template.executeSync path: 'hi.md', engine: 'Lodash', hi: 'hello world.'
###
the file path is 'hi.md'.
hello world.
###

API

  • executeSync(aFile) or execute(aFile, done):

TODO

License

MIT

About

Apply the configuration data to the file contents(treat it as the template).

Resources

License

Stars

Watchers

Forks

Packages

No packages published