summaryrefslogtreecommitdiffstats
path: root/spec/string-params.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/string-params.js')
-rw-r--r--spec/string-params.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/string-params.js b/spec/string-params.js
index 1ebb583..920b855 100644
--- a/spec/string-params.js
+++ b/spec/string-params.js
@@ -142,4 +142,20 @@ describe('string params mode', function() {
equals(result, "STOP ME FROM READING HACKER NEWS I need-a dad.joke wot", "Proper context variable output");
});
+
+ it("with nested block ambiguous", function() {
+ var template = CompilerContext.compile('{{#with content}}{{#view}}{{firstName}} {{lastName}}{{/view}}{{/with}}', {stringParams: true});
+
+ var helpers = {
+ with: function(options) {
+ return "WITH";
+ },
+ view: function() {
+ return "VIEW";
+ }
+ };
+
+ var result = template({}, {helpers: helpers});
+ equals(result, "WITH");
+ });
});