Skip to content

Commit 9599e4f

Browse files
committed
Make source/_meta a configurable path
fixes #353
1 parent 618f8fd commit 9599e4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/lib/patternlab.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,16 @@ var patternlab_engine = function (config) {
189189

190190
//set user defined head and foot if they exist
191191
try {
192-
patternlab.userHead = fs.readFileSync(path.resolve(paths.source.root, '_meta', '_00-head.mustache'), 'utf8');
192+
patternlab.userHead = fs.readFileSync(path.resolve(paths.source.meta, '_00-head.mustache'), 'utf8');
193193
}
194194
catch (ex) {
195195
if (patternlab.config.debug) {
196196
console.log(ex);
197-
console.log('Could not find optional user-defined header, usually found at ./source/_meta/_001-head.mustache. It was likely deleted.');
197+
console.log('Could not find optional user-defined header, usually found at ./source/_meta/_00-head.mustache. It was likely deleted.');
198198
}
199199
}
200200
try {
201-
patternlab.userFoot = fs.readFileSync(path.resolve(paths.source.root, '_meta', '_01-foot.mustache'), 'utf8');
201+
patternlab.userFoot = fs.readFileSync(path.resolve(paths.source.meta, '_01-foot.mustache'), 'utf8');
202202
}
203203
catch (ex) {
204204
if (patternlab.config.debug) {

0 commit comments

Comments
 (0)