@@ -517,9 +517,9 @@ const ui_builder = function() {
517517 * @param patternPartial - a key used to identify the viewall page
518518 * @returns A promise which resolves with the HTML
519519 */
520- function buildViewAllHTML ( patternlab , patterns , patternPartial ) {
520+ function buildViewAllHTML ( patternlab , patterns , patternPartial , uikit ) {
521521 return render (
522- Pattern . createEmpty ( { extendedTemplate : patternlab . viewAll } ) ,
522+ Pattern . createEmpty ( { extendedTemplate : uikit . viewAll } ) ,
523523 {
524524 //data
525525 partials : patterns ,
@@ -528,8 +528,8 @@ const ui_builder = function() {
528528 } ,
529529 {
530530 //templates
531- patternSection : patternlab . patternSection ,
532- patternSectionSubtype : patternlab . patternSectionSubType ,
531+ patternSection : uikit . patternSection ,
532+ patternSectionSubtype : uikit . patternSectionSubType ,
533533 }
534534 ) . catch ( reason => {
535535 console . log ( reason ) ;
@@ -580,7 +580,7 @@ const ui_builder = function() {
580580 }
581581
582582 //render the footer needed for the viewall template
583- return buildFooter ( patternlab , ' viewall-' + patternPartial , uikit )
583+ return buildFooter ( patternlab , ` viewall-${ patternPartial } ` , uikit )
584584 . then ( footerHTML => {
585585 //render the viewall template by finding these smallest subtype-grouped patterns
586586 const subtypePatterns = sortPatterns ( _ . values ( patternSubtypes ) ) ;
@@ -613,7 +613,8 @@ const ui_builder = function() {
613613 return buildViewAllHTML (
614614 patternlab ,
615615 subtypePatterns ,
616- patternPartial
616+ patternPartial ,
617+ uikit
617618 )
618619 . then ( viewAllHTML => {
619620 return fs . outputFile (
@@ -670,7 +671,8 @@ const ui_builder = function() {
670671 return buildViewAllHTML (
671672 patternlab ,
672673 typePatterns ,
673- patternType
674+ patternType ,
675+ uikit
674676 )
675677 . then ( viewAllHTML => {
676678 fs . outputFileSync (
0 commit comments