Skip to content

Commit 6fc72a2

Browse files
committed
Revert "in process stylemodifier work"
This reverts commit 9487917.
1 parent 9487917 commit 6fc72a2

File tree

4 files changed

+13
-37
lines changed

4 files changed

+13
-37
lines changed

builder/pattern_assembler.js

Lines changed: 9 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
/*
2-
* patternlab-node - v0.12.0 - 2015
3-
*
1+
/*
2+
* patternlab-node - v0.12.0 - 2015
3+
*
44
* 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.
88
*
99
*/
1010

@@ -22,6 +22,7 @@
2222
return true;
2323
}
2424

25+
2526
//find and return any {{> template-name }} within pattern
2627
function findPartials(pattern){
2728
var matches = pattern.template.match(/{{>([ ])?([\w\-\.\/~]+)(?:\:[A-Za-z0-9-]+)?(?:(| )\(.*)?([ ])?}}/g);
@@ -41,26 +42,6 @@
4142
}
4243
}
4344

44-
function applyStyleModifications(pattern, patternlab){
45-
//look for styleModifiers within the pattern template
46-
var matches = pattern.template.match(/(:)([a-zA-Z]*)/g);
47-
48-
//parse matches if they look like modifiers
49-
if(matches){
50-
console.log(matches);
51-
52-
for(var i = 0; i < matches.length; i++){
53-
if(matches[i].length > 1){
54-
console.log(matches[i]);
55-
}
56-
}
57-
}
58-
59-
//add to pattern data
60-
61-
//remove from the template
62-
}
63-
6445
function addPattern(pattern, patternlab){
6546
patternlab.data.link[pattern.patternGroup + '-' + pattern.patternName] = '/patterns/' + pattern.patternLink;
6647
patternlab.patterns.push(pattern);
@@ -111,12 +92,10 @@
11192
try {
11293
var listJsonFileName = patternlab.config.patterns.source + currentPattern.subdir + '/' + currentPattern.fileName + ".listitems.json";
11394
currentPattern.patternSpecificListJson = fs.readJSONSync(listJsonFileName.substring(2));
114-
if(patternlab.confi.debug){
115-
console.log('found pattern-specific listitems.json for ' + currentPattern.key);
116-
}
95+
console.log('found pattern-specific listitems.json for ' + currentPattern.key);
11796
}
11897
catch(e) {
119-
}
98+
}
12099

121100
//add the raw template to memory
122101
currentPattern.template = fs.readFileSync(abspath, 'utf8');
@@ -166,9 +145,6 @@
166145

167146
}
168147

169-
//look for pattern styleModifiers
170-
applyStyleModifications(currentPattern, patternlab);
171-
172148
//find pattern lineage
173149
lineage_hunter.find_lineage(currentPattern, patternlab);
174150

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"ignored-extensions" : ["scss", "DS_Store", "less"],
77
"ignored-directories" : ["scss"],
8-
"debug": true,
8+
"debug": false,
99
"ishControlsVisible": {
1010
"s": true,
1111
"m": true,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<li class="comment-container {{ styleModifier }}">
1+
<li class="comment-container">
22
<div class="comment-meta">
33
{{> atoms-avatar }}
44
<h4 class="comment-name"><a href="#">{{name.first}} {{name.last}}</a></h4>
55
</div>
66
<div class="comment-text">
77
<p>{{description}}</p>
88
</div>
9-
</li>
9+
</li>

source/_patterns/02-organisms/02-comments/01-sticky-comment.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="comments-container" id="comments-container">
33
<h2 class="section-title">Selected Comments</h2>
44
<ul class="comment-list">
5-
{{> molecules-single-comment:sticky(description: 'We are all in the gutter, but some of us are looking at the stars.') }}
5+
{{> molecules-single-comment(description: 'We are all in the gutter, but some of us are looking at the stars.') }}
66
{{> molecules-single-comment(description: 'A life is like a garden. Perfect moments can be had, but not preserved, except in memory.') }}
77
</ul>
88
</div>

0 commit comments

Comments
 (0)