File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,6 @@ var patternlab_engine = function () {
91
91
pattern_assembler . process_pattern_iterative ( file . substring ( 2 ) , patternlab ) ;
92
92
} ) ;
93
93
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
-
98
94
//diveSync again to recursively include partials, filling out the
99
95
//extendedTemplate property of the patternlab.patterns elements
100
96
diveSync ( patterns_dir , {
@@ -117,6 +113,10 @@ var patternlab_engine = function () {
117
113
pattern_assembler . process_pattern_recursive ( file . substring ( 2 ) , patternlab ) ;
118
114
} ) ;
119
115
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
+
120
120
//delete the contents of config.patterns.public before writing
121
121
if ( deletePatternDir ) {
122
122
fs . emptyDirSync ( patternlab . config . patterns . public ) ;
You can’t perform that action at this time.
0 commit comments