Template helper for globbing files. Works with handlebars, Lo-Dash or any template engine that supports helper functions.
npm
Install withnpm i helper-glob --save
Usage
Lo-Dash
var _ = ; _; // glob and read filesvar fs = ;_;
Handlebars
var handlebars = ;var fs = ; handlebars;handlebars;
{{glob 'files/*.txt'}} <!-- glob and read files using subexpressions -->{{#each (glob "files/*.hbs")}} {{read .}}{{/each}}
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert
Released under the MIT license
This file was generated by verb on December 06, 2014. To update, run npm i -g verb && verb
.