task-registry-file-template

0.1.2 • Public • Published

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

/task-registry-file-template/

    Package Sidebar

    Install

    npm i task-registry-file-template

    Weekly Downloads

    3

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • riceball