From 29438741a9c318e87516e87f9fc68d8d35f18d78 Mon Sep 17 00:00:00 2001 From: Brian Muenzenmeyer Date: Tue, 21 Jun 2016 07:00:42 -0500 Subject: [PATCH] Change patternBreadcrumb to an Object Instead of a String closes #363 --- core/lib/patternlab.js | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/core/lib/patternlab.js b/core/lib/patternlab.js index b9aa235d8..88fbf8351 100644 --- a/core/lib/patternlab.js +++ b/core/lib/patternlab.js @@ -1,10 +1,10 @@ -/* - * patternlab-node - v2.0.0-alpha.3 - 2016 - * +/* + * patternlab-node - v2.0.0-alpha.3 - 2016 + * * Brian Muenzenmeyer, Geoff Pursell, and the web community. - * Licensed under the MIT license. - * - * Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice. + * Licensed under the MIT license. + * + * Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice. * */ @@ -316,7 +316,14 @@ var patternlab_engine = function (config) { lineageR: pattern.patternLineagesR, patternLineageEExists: pattern.patternLineageExists || pattern.patternLineageRExists, patternDesc: pattern.patternDescExists ? pattern.patternDesc : '', - patternBreadcrumb: pattern.patternGroup === pattern.patternSubGroup ? pattern.patternGroup : pattern.patternGroup + ' > ' + pattern.patternSubGroup, + patternBreadcrumb: + pattern.patternGroup === pattern.patternSubGroup ? + { + patternType: pattern.patternGroup + } : { + patternType: pattern.patternGroup, + patternSubtype: pattern.patternSubGroup + }, patternExtension: pattern.fileExtension, patternName: pattern.patternName, patternPartial: pattern.patternPartial,