Package Exports
- assemble-loader
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (assemble-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
assemble-loader 
Assemble plugin (0.6+) for loading globs of views onto custom view collections. Also works with verb or other Templates.js based applications.
Install
Install with npm
$ npm i assemble-loader --saveUsage
var assemble = require('assemble');
var loader = require('assemble-loader');App instance
Use on the application instance to add a .load method to every view collection created.
var app = assemble();
app.use(loader());
app.create('pages');
app.pages.load('*.hbs');
app.create('posts');
app.posts.load('*.md');Collection instance
Use on a collection instance to add a .load method to that collection only.
var app = assemble();
app.create('pages')
.use(loader());
// chainable
app.pages
.load('*.hbs')
.load('*.txt')You can also pass glob patterns directly to the plugin.
var app = assemble();
app.create('pages')
.use(loader('*.hbs'))
.use(loader('*.txt'))
.use(loader('*.md'))Related projects
- assemble: Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… more | homepage
- templates: System for creating and managing template collections, and rendering templates with any node.js template engine.… more | homepage
- verb: Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… more | homepage
Running tests
Install dev dependencies:
$ npm i -d && npm testContributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Jon Schlinkert
License
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on September 18, 2015.