Skip to content

Commit

Permalink
Change patternBreadcrumb to an Object Instead of a String
Browse files Browse the repository at this point in the history
closes #363
  • Loading branch information
bmuenzenmeyer committed Jun 21, 2016
1 parent 9d8d66a commit 2943874
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions core/lib/patternlab.js
Original file line number Diff line number Diff line change
@@ -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.
*
*/

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2943874

Please sign in to comment.