diff options
Diffstat (limited to 'spec/helpers.js')
-rw-r--r-- | spec/helpers.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/helpers.js b/spec/helpers.js index 54ef0f2..f3257a5 100644 --- a/spec/helpers.js +++ b/spec/helpers.js @@ -28,6 +28,16 @@ describe('helpers', function() { 'raw block helper gets raw content'); }); + it('helper for nested raw block gets raw content', function() { + var string = '{{{{a}}}} {{{{b}}}} {{{{/b}}}} {{{{/a}}}}'; + var helpers = { + a: function(options) { + return options.fn(); + } + }; + shouldCompileTo(string, [{}, helpers], ' {{{{b}}}} {{{{/b}}}} '); + }); + it('helper block with complex lookup expression', function() { var string = '{{#goodbyes}}{{../name}}{{/goodbyes}}'; var hash = {name: 'Alan'}; |