Skip to content

Commit 612715e

Browse files
committed
Exposed template object through exports.
1 parent 23515fc commit 612715e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/doxdox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var fs = require('fs'),
66
Promise = require('promise'),
77
utils = require('../lib/utils');
88

9-
var templates = {
9+
exports.templates = {
1010
bootstrap: require('../templates/bootstrap.hbs'),
1111
markdown: require('../templates/markdown.hbs'),
1212
dash: utils.buildDashDocSet
@@ -77,9 +77,9 @@ exports.parseScripts = function (scripts, config, pkg) {
7777

7878
template = require(path.resolve(config.layout));
7979

80-
} else if (templates[config.layout.toLowerCase()]) {
80+
} else if (exports.templates[config.layout.toLowerCase()]) {
8181

82-
template = templates[config.layout.toLowerCase()];
82+
template = exports.templates[config.layout.toLowerCase()];
8383

8484
}
8585

0 commit comments

Comments
 (0)