|
104 | 104 | //setup current pattern from what we would have during execution
|
105 | 105 | var currentPattern = createFakeEmptyErrorPattern();
|
106 | 106 | extend(currentPattern, {
|
107 |
| - "template": "{{> atoms-error(message: 'That\'s no moon...') }}", |
108 |
| - "patternPartial": "{{> atoms-error(message: 'That\'s no moon...') }}" |
| 107 | + "template": "{{> atoms-error(message: 'That\\'s no moon...') }}", |
| 108 | + "patternPartial": "{{> atoms-error(message: 'That\\'s no moon...') }}" |
109 | 109 | });
|
110 | 110 |
|
111 | 111 | var patternlab = {
|
112 | 112 | patterns: [
|
113 |
| - { |
114 |
| - "name": "01-atoms-05-alerts-00-error", |
115 |
| - "subdir": "01-atoms\\05-alerts", |
116 |
| - "filename": "00-error.mustache", |
117 |
| - "data": null, |
118 |
| - "template": "<h1> {{message}} </h1>", |
119 |
| - "patternPartial": "<h1> {{message}} </h1>", |
120 |
| - "patternName": "error", |
121 |
| - "patternLink": "01-atoms-05-alerts-00-error/01-atoms-05-alerts-00-error.html", |
122 |
| - "patternGroup": "atoms", |
123 |
| - "patternSubGroup": "atoms\\05-alerts", |
124 |
| - "flatPatternPath": "01-atoms\\05-alerts", |
125 |
| - "patternState": "", |
126 |
| - "lineage": [], |
127 |
| - "lineageIndex": [], |
128 |
| - "lineageR": [], |
129 |
| - "lineageRIndex": [] |
130 |
| - } |
| 113 | + of.oPattern.create( |
| 114 | + '/home/fakeuser/pl/source/_patterns/00-atoms/05-alerts/00-error.mustache', |
| 115 | + '00-atoms\\05-alerts', |
| 116 | + '00-error.mustache', |
| 117 | + null, |
| 118 | + { |
| 119 | + "template": "<h1> {{message}} </h1>", |
| 120 | + "patternPartial": "<h1> {{message}} </h1>" |
| 121 | + } |
| 122 | + ) |
131 | 123 | ]
|
132 | 124 | };
|
133 | 125 |
|
|
144 | 136 | //setup current pattern from what we would have during execution
|
145 | 137 | var currentPattern = createFakeEmptyErrorPattern();
|
146 | 138 | extend(currentPattern, {
|
147 |
| - "template": "{{>atoms-error(message: 'That\'s no moon...')}}", |
148 |
| - "patternPartial": "{{>atoms-error(message: 'That\'s no moon...')}}", |
| 139 | + "template": "{{>atoms-error(message: 'That\\'s no moon...')}}", |
| 140 | + "patternPartial": "{{>atoms-error(message: 'That\\'s no moon...')}}", |
149 | 141 | });
|
150 | 142 |
|
151 | 143 | var patternlab = {
|
|
186 | 178 | //setup current pattern from what we would have during execution
|
187 | 179 | var currentPattern = createFakeEmptyErrorPattern();
|
188 | 180 | extend(currentPattern, {
|
189 |
| - "template": "{{>atoms-error(message: 'That\'s no moon...')}}", |
190 |
| - "patternPartial": "{{>atoms-error(message: 'That\'s no moon...')}}" |
| 181 | + "template": "{{>atoms-error(message: 'That\\'s no moon...')}}", |
| 182 | + "patternPartial": "{{>atoms-error(message: 'That\\'s no moon...')}}" |
191 | 183 | });
|
192 | 184 | var patternlab = {
|
193 | 185 | patterns: [
|
|
0 commit comments