summaryrefslogtreecommitdiff
path: root/node_modules/express-handlebars/index.js
blob: 8f87865bf1add494dc5a36ad7aad97207092ce5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2014, Yahoo Inc. All rights reserved.
 * Copyrights licensed under the New BSD License.
 * See the accompanying LICENSE file for terms.
 */

"use strict";

var ExpressHandlebars = require("./lib/express-handlebars");

exports = module.exports = exphbs;
exports.create = create;
exports.ExpressHandlebars = ExpressHandlebars;

// -----------------------------------------------------------------------------

function exphbs (config) {
	return create(config).engine;
}

function create (config) {
	return new ExpressHandlebars(config);
}