UNPKG

partials

Version:

Create an object of template partials from a glob of files to pass to any template engine.

33 lines (22 loc) 484 B
# {%= name %} {%= badge("fury") %} > {%= description %} ## Install {%= include("install-npm", {save: true}) %} {%= include("install-bower", {save: true}) %} ## Run tests ```bash npm test ``` ## Usage ```js var partials = require('{%= name %}'); console.log(partials('*.hbs')); //=> {a: '<h1>{{title}}</h1>', b: '<h1>{{title}}</h1>', c: '<h1>{{title}}</h1>' } ``` ## Author {%= include("author") %} ## License {%= copyright() %} {%= license() %} *** {%= include("footer") %}