Drop omitted content tags from generated output

This commit is contained in:
kpdecker
2014-08-12 14:07:13 -05:00
parent 50c657f138
commit 2a47d66ee9
3 changed files with 34 additions and 3 deletions
+11
View File
@@ -83,4 +83,15 @@ describe('blocks', function() {
"No people");
});
});
describe('standalone sections', function() {
it('block standalone else sections', function() {
shouldCompileTo('{{#people}}\n{{name}}\n{{^}}\n{{none}}\n{{/people}}\n', {none: 'No people'},
'No people\n');
shouldCompileTo('{{#none}}\n{{.}}\n{{^}}\n{{none}}\n{{/none}}\n', {none: 'No people'},
'No people\n');
shouldCompileTo('\n{{#people}}\n{{name}}\n{{^}}\n{{none}}\n{{/people}}\n', {none: 'No people'},
'No people\n');
});
});
});