Last active
February 3, 2018 05:52
-
-
Save jonschlinkert/9685280 to your computer and use it in GitHub Desktop.
Example verbfile: process templates in the `src` directory and save the rendered files to `docs/`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var file = require('fs-utils'); | |
module.exports = function(verb) { | |
// Process templates | |
file.writeFileSync('docs/', verb.read('src/*.tmpl.md', { | |
data: 'src/*.json' // custom metadata for templates | |
})); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Normally, verb-cli looks for templates to process in the
docs
directory then writes the rendered files to the root of the project.