File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments