Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brendanashworth/handlefiles
Simple and eloquent multi-file support for NodeJS handlebars
https://github.com/brendanashworth/handlefiles
Last synced: 9 days ago
JSON representation
Simple and eloquent multi-file support for NodeJS handlebars
- Host: GitHub
- URL: https://github.com/brendanashworth/handlefiles
- Owner: brendanashworth
- License: mit
- Created: 2014-06-10T23:43:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-11T00:11:25.000Z (over 10 years ago)
- Last Synced: 2023-04-10T02:50:15.270Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 105 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Handlefiles
======![Handlefiles NPM](https://nodei.co/npm/handlefiles.png)
> Handlefiles is a Handlebars library, used for simplifying the reading, compilation, and parsing process for multiple files.
### Install
```bash
$ npm install handlefiles --save
```### Documentation
```javascript
var handlefiles = require('handlefiles');var files = [
'example/file1.html',
'example/file2.html'
],
object = {
pageName: "My Custom Page Name"
};handlefiles.parseFiles(files, object, function(err, output) {
if (err) {
// handle error
}// We now have the output variable with our read, compiled, and parsed output,
// ready to be sent to the client.
});
```