base-file-loader

Load vinyl file objects onto a Template collection.

MIT 5 个版本
安装
npm install base-file-loader
yarn add base-file-loader
pnpm add base-file-loader
bun add base-file-loader
README

base-file-loader NPM version Build Status

Load vinyl file objects onto a Template collection.

Install with npm

npm i base-file-loader --save

Usage

var loader = require('base-file-loader');
var template = require('template');
var File = require('vinyl');

template.create('post', { isRenderable: true }, [loader]);

// now you can load posts!
var file = new File({path: 'foo.md', contents: '...'});
template.post(file);

Running tests

Install dev dependencies.

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb-cli on March 15, 2015.

版本列表
1.1.0 2015-03-16
1.0.1 2015-02-25
1.0.0 2015-01-13
0.1.1 2014-12-20
0.1.0 2014-12-20