@@ -517,9 +517,9 @@ const ui_builder = function() {
517
517
* @param patternPartial - a key used to identify the viewall page
518
518
* @returns A promise which resolves with the HTML
519
519
*/
520
- function buildViewAllHTML ( patternlab , patterns , patternPartial ) {
520
+ function buildViewAllHTML ( patternlab , patterns , patternPartial , uikit ) {
521
521
return render (
522
- Pattern . createEmpty ( { extendedTemplate : patternlab . viewAll } ) ,
522
+ Pattern . createEmpty ( { extendedTemplate : uikit . viewAll } ) ,
523
523
{
524
524
//data
525
525
partials : patterns ,
@@ -528,8 +528,8 @@ const ui_builder = function() {
528
528
} ,
529
529
{
530
530
//templates
531
- patternSection : patternlab . patternSection ,
532
- patternSectionSubtype : patternlab . patternSectionSubType ,
531
+ patternSection : uikit . patternSection ,
532
+ patternSectionSubtype : uikit . patternSectionSubType ,
533
533
}
534
534
) . catch ( reason => {
535
535
console . log ( reason ) ;
@@ -580,7 +580,7 @@ const ui_builder = function() {
580
580
}
581
581
582
582
//render the footer needed for the viewall template
583
- return buildFooter ( patternlab , ' viewall-' + patternPartial , uikit )
583
+ return buildFooter ( patternlab , ` viewall-${ patternPartial } ` , uikit )
584
584
. then ( footerHTML => {
585
585
//render the viewall template by finding these smallest subtype-grouped patterns
586
586
const subtypePatterns = sortPatterns ( _ . values ( patternSubtypes ) ) ;
@@ -613,7 +613,8 @@ const ui_builder = function() {
613
613
return buildViewAllHTML (
614
614
patternlab ,
615
615
subtypePatterns ,
616
- patternPartial
616
+ patternPartial ,
617
+ uikit
617
618
)
618
619
. then ( viewAllHTML => {
619
620
return fs . outputFile (
@@ -670,7 +671,8 @@ const ui_builder = function() {
670
671
return buildViewAllHTML (
671
672
patternlab ,
672
673
typePatterns ,
673
- patternType
674
+ patternType ,
675
+ uikit
674
676
)
675
677
. then ( viewAllHTML => {
676
678
fs . outputFileSync (
0 commit comments