brendanashworth / handlefiles

Simple and eloquent multi-file support for NodeJS handlebars

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handlefiles

Handlefiles NPM

Handlefiles is a Handlebars library, used for simplifying the reading, compilation, and parsing process for multiple files.

Install

$ npm install handlefiles --save

Documentation

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.
});

About

Simple and eloquent multi-file support for NodeJS handlebars

License:MIT License


Languages

Language:JavaScript 100.0%