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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ If this looks **REALLY DIFFERENT** from what you expected, check out the [Change
15
15
16
16
## Upgrading
17
17
18
-
If you find yourself here and are looking to ugpgrade, check out how to upgrade from version to version of Pattern Lab Node here: [https://github.com/pattern-lab/patternlab-node/wiki/Upgrading](https://github.com/pattern-lab/patternlab-node/wiki/Upgrading)
18
+
If you find yourself here and are looking to upgrade, check out how to upgrade from version to version of Pattern Lab Node here: [https://github.com/pattern-lab/patternlab-node/wiki/Upgrading](https://github.com/pattern-lab/patternlab-node/wiki/Upgrading)
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