/*
 * Copyright (c) 2014, Yahoo Inc. All rights reserved.
 * Copyrights licensed under the New BSD License.
 * See the accompanying LICENSE file for terms.
 */

"use strict";

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