load-templates ![NPM version](https://badge.fury.io/js/load-templates.svg)
Load templates.
Install
Install with npm
npm i load-templates --save
Run tests
npm test
Usage
var Loader = require('load-templates');
var loader = new Loader();
Throw some disorganized templates into the load method:
loader.load('a.md', {a: 'b'});
loader.load('*.md', {a: 'b'});
loader.load(['*.md'], {a: 'b'});
loader.load({path: 'a.md', a: 'b'});
loader.load({'a.md': {path: 'a.md', a: 'b'}});
And get shiny, normalized template objects back:
{ 'a.md': {path: 'a.md', content: 'this is content.', a: 'b'},
'b.md': {path: 'b.md', content: 'this is content.', a: 'b'},
'c.md': {path: 'c.md', content: 'this is content.', a: 'b'}}
Valid formats
See the docs and tests for valid formats. WIP.
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on October 06, 2014.