|
1 |
| -/* |
2 |
| - * patternlab-node - v0.10.0 - 2015 |
3 |
| - * |
| 1 | +/* |
| 2 | + * patternlab-node - v0.10.0 - 2015 |
| 3 | + * |
4 | 4 | * Brian Muenzenmeyer, and the web community.
|
5 |
| - * Licensed under the MIT license. |
6 |
| - * |
7 |
| - * Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice. |
| 5 | + * Licensed under the MIT license. |
| 6 | + * |
| 7 | + * Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice. |
8 | 8 | *
|
9 | 9 | */
|
10 | 10 |
|
|
103 | 103 | console.log('found partials for ' + currentPattern.key);
|
104 | 104 | }
|
105 | 105 | //determine if the template contains any pattern parameters. if so they must be immediately consumed
|
106 |
| - var patternsConsumedWithParameters = parameter_hunter.find_parameters(currentPattern, patternlab); |
| 106 | + parameter_hunter.find_parameters(currentPattern, patternlab); |
107 | 107 |
|
108 | 108 | //do something with the regular old partials
|
109 | 109 | for(var i = 0; i < foundPatternPartials.length; i++){
|
|
123 | 123 | //find pattern lineage
|
124 | 124 | lineage_hunter.find_lineage(currentPattern, patternlab);
|
125 | 125 |
|
126 |
| - //add as a partial in case this is referenced later. convert to syntax needed by existing patterns |
127 |
| - // var sub = currentPattern.subdir.substring(currentPattern.subdir.indexOf('-') + 1); |
128 |
| - // var folderIndex = sub.indexOf(path.sep); |
129 |
| - // var cleanSub = sub.substring(0, folderIndex); |
130 |
| - // |
131 |
| - // //add any templates found to an object of partials, so downstream templates may use them too |
132 |
| - // //look for the full path on nested patterns, else expect it to be flat |
133 |
| - // var partialname = ''; |
134 |
| - // if(cleanSub !== ''){ |
135 |
| - // partialname = cleanSub + '-' + currentPattern.patternName; |
136 |
| - // } else{ |
137 |
| - // partialname = currentPattern.patternGroup + '-' + currentPattern.patternName; |
138 |
| - // } |
139 |
| - // patternlab.partials[partialname] = currentPattern.template; |
140 |
| - |
141 | 126 | //look for a pseudo pattern by checking if there is a file containing same name, with ~ in it, ending in .json
|
142 | 127 | pseudopattern_hunter.find_pseudopatterns(currentPattern, patternlab);
|
143 | 128 |
|
|
0 commit comments