You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plutils.logRed('\nWARNING: Could not find the user-editable header template, currently configured to be at '+path.join(config.paths.source.meta,'_00-head.mustache')+'. Your configured path may be incorrect (check paths.source.meta in your config file), the file may have been deleted, or it may have been left in the wrong place during a migration or update.\n');
213
+
if(patternlab.config.debug){console.log(ex);}
214
+
process.exit(1);
215
+
}
216
+
}
217
+
218
+
/**
219
+
* Process the user-defined pattern footer and prepare it for rendering
plutils.logRed('\nWARNING: Could not find the user-editable footer template, currently configured to be at '+path.join(config.paths.source.meta,'_01-foot.mustache')+'. Your configured path may be incorrect (check paths.source.meta in your config file), the file may have been deleted, or it may have been left in the wrong place during a migration or update.\n');
plutils.logRed('\nWARNING: Could not find the user-editable header template, currently configured to be at '+path.join(config.paths.source.meta,'_00-head.mustache')+'. Your configured path may be incorrect (check paths.source.meta in your config file), the file may have been deleted, or it may have been left in the wrong place during a migration or update.\n');
plutils.logRed('\nWARNING: Could not find the user-editable footer template, currently configured to be at '+path.join(config.paths.source.meta,'_01-foot.mustache')+'. Your configured path may be incorrect (check paths.source.meta in your config file), the file may have been deleted, or it may have been left in the wrong place during a migration or update.\n');
253
-
if(patternlab.config.debug){console.log(ex);}
254
-
process.exit(1);
255
-
}
278
+
//take the user defined head and foot and process any data and patterns that apply
279
+
processHeadPattern();
280
+
processFootPattern();
256
281
257
282
//now that all the main patterns are known, look for any links that might be within data and expand them
258
283
//we need to do this before expanding patterns & partials into extendedTemplates, otherwise we could lose the data -> partial reference
@@ -287,8 +312,6 @@ var patternlab_engine = function (config) {
0 commit comments