Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

partials

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

dir, directories, directory, dirs, file, filepath, filepaths, files, handlebars, hash, list, lodash, map, mapping, name, object, partial, partials, path, paths, template, templates

readme

partials NPM version

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

Install

Install with npm

npm i partials --save

Install with bower

bower install partials --save

Run tests

npm test

Usage

var partials = require('partials');

console.log(partials('*.hbs'));
//=> {a: '<h1>{{title}}</h1>', b: '<h1>{{title}}</h1>', c: '<h1>{{title}}</h1>' }

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on October 10, 2014.