1 | /*
|
2 | * Copyright (c) 2014, Yahoo Inc. All rights reserved.
|
3 | * Copyrights licensed under the New BSD License.
|
4 | * See the accompanying LICENSE file for terms.
|
5 | */
|
6 |
|
7 | ;
|
8 |
|
9 | var ExpressHandlebars = require("./lib/express-handlebars");
|
10 |
|
11 | exports = module.exports = exphbs;
|
12 | exports.create = create;
|
13 | exports.ExpressHandlebars = ExpressHandlebars;
|
14 |
|
15 | // -----------------------------------------------------------------------------
|
16 |
|
17 | function exphbs (config) {
|
18 | return create(config).engine;
|
19 | }
|
20 |
|
21 | function create (config) {
|
22 | return new ExpressHandlebars(config);
|
23 | }
|