index.js 573 B

1234567891011121314151617181920212223
  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. 'use strict';
  7. var ExpressHandlebars = require('./lib/express-handlebars');
  8. exports = module.exports = exphbs;
  9. exports.create = create;
  10. exports.ExpressHandlebars = ExpressHandlebars;
  11. // -----------------------------------------------------------------------------
  12. function exphbs(config) {
  13. return create(config).engine;
  14. }
  15. function create(config) {
  16. return new ExpressHandlebars(config);
  17. }