File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,7 @@ var patternlab_engine = function (config) {
258
258
259
259
//render the extendedTemplate with all data
260
260
pattern . patternPartialCode = pattern_assembler . renderPattern ( pattern , allData ) ;
261
+ //todo see if this is still needed
261
262
pattern . patternPartialCodeE = entity_encoder . encode ( pattern . patternPartialCode ) ;
262
263
263
264
// stringify this data for individual pattern rendering and use on the styleguide
@@ -296,10 +297,10 @@ var patternlab_engine = function (config) {
296
297
fs . outputFileSync ( paths . public . patterns + pattern . patternLink , patternPage ) ;
297
298
298
299
//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 ) ;
300
301
301
302
//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 ) ;
303
304
} ) ;
304
305
305
306
//export patterns if necessary
You can’t perform that action at this time.
0 commit comments