Skip to content

Commit 9975fc8

Browse files
committed
no need to encode these files anymore
1 parent 2028f1f commit 9975fc8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/lib/patternlab.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ var patternlab_engine = function (config) {
258258

259259
//render the extendedTemplate with all data
260260
pattern.patternPartialCode = pattern_assembler.renderPattern(pattern, allData);
261+
//todo see if this is still needed
261262
pattern.patternPartialCodeE = entity_encoder.encode(pattern.patternPartialCode);
262263

263264
// stringify this data for individual pattern rendering and use on the styleguide
@@ -296,10 +297,10 @@ var patternlab_engine = function (config) {
296297
fs.outputFileSync(paths.public.patterns + pattern.patternLink, patternPage);
297298

298299
//write the mustache file too
299-
fs.outputFileSync(paths.public.patterns + pattern.patternLink.replace('.html', '.mustache'), entity_encoder.encode(pattern.template));
300+
fs.outputFileSync(paths.public.patterns + pattern.patternLink.replace('.html', pattern.fileExtension), pattern.template);
300301

301302
//write the encoded version too
302-
fs.outputFileSync(paths.public.patterns + pattern.patternLink.replace('.html', '.escaped.html'), entity_encoder.encode(patternPage));
303+
fs.outputFileSync(paths.public.patterns + pattern.patternLink.replace('.html', '.markup-only.html'), pattern.patternPartialCode);
303304
});
304305

305306
//export patterns if necessary

0 commit comments

Comments
 (0)