Skip to content

Commit 8812651

Browse files
committed
attempt to fix render of raw template panel
1 parent 166dfdd commit 8812651

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

core/lib/object_factory.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ Pattern.prototype = {
9292
var suffixConfig = patternlab.config.outputFileSuffixes;
9393
var suffix = suffixType ? suffixConfig[suffixType] : suffixConfig.rendered;
9494

95+
if (suffixType === 'rawTemplate') {
96+
return this.name + path.sep + this.name + suffix + this.fileExtension;
97+
}
9598
return this.name + path.sep + this.name + suffix + '.html';
9699
},
97100

test/object_factory_tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ exports['Pattern initialization'] = {
9494
var p = new Pattern('00-atoms/00-global/00-colors.hbs');
9595
test.equals(p.getPatternLink(pl), '00-atoms-00-global-00-colors' + path.sep + '00-atoms-00-global-00-colors.rendered.html');
9696
test.equals(p.getPatternLink(pl, 'rendered'), '00-atoms-00-global-00-colors' + path.sep + '00-atoms-00-global-00-colors.rendered.html');
97-
test.equals(p.getPatternLink(pl, 'rawTemplate'), '00-atoms-00-global-00-colors' + path.sep + '00-atoms-00-global-00-colors.html');
97+
test.equals(p.getPatternLink(pl, 'rawTemplate'), '00-atoms-00-global-00-colors' + path.sep + '00-atoms-00-global-00-colors.hbs');
9898
test.equals(p.getPatternLink(pl, 'markupOnly'), '00-atoms-00-global-00-colors' + path.sep + '00-atoms-00-global-00-colors.markup-only.html');
9999
test.done();
100100
}

0 commit comments

Comments
 (0)