Skip to content

Commit d66edf0

Browse files
committed
allow pseudo linking
1 parent f3f85c9 commit d66edf0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

builder/patternlab.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ var patternlab_engine = function () {
9191
pattern_assembler.process_pattern_iterative(file.substring(2), patternlab);
9292
});
9393

94-
//now that all the main patterns are known, look for any links that might be within data and expand them
95-
//we need to do this before expanding patterns & partials into extendedTemplates, otherwise we could lose the data -> partial reference
96-
pattern_assembler.parse_data_links(patternlab);
97-
9894
//diveSync again to recursively include partials, filling out the
9995
//extendedTemplate property of the patternlab.patterns elements
10096
diveSync(patterns_dir, {
@@ -117,6 +113,10 @@ var patternlab_engine = function () {
117113
pattern_assembler.process_pattern_recursive(file.substring(2), patternlab);
118114
});
119115

116+
//now that all the main patterns are known, look for any links that might be within data and expand them
117+
//we need to do this before expanding patterns & partials into extendedTemplates, otherwise we could lose the data -> partial reference
118+
pattern_assembler.parse_data_links(patternlab);
119+
120120
//delete the contents of config.patterns.public before writing
121121
if(deletePatternDir){
122122
fs.emptyDirSync(patternlab.config.patterns.public);

0 commit comments

Comments
 (0)