diff options
author | Alan Johnson <alan@commondream.net> | 2011-09-02 09:10:20 -0400 |
---|---|---|
committer | Alan Johnson <alan@commondream.net> | 2011-09-02 09:10:20 -0400 |
commit | 7212e2b7d732dfe37ad94bff187e91c87282a839 (patch) | |
tree | bc9097b8f3d7187d85d795f88317543f57d090db /spec/qunit_spec.js | |
parent | fc84308cc9124c94dcd372629d15bd10ce30875d (diff) | |
download | handlebars.js-7212e2b7d732dfe37ad94bff187e91c87282a839.zip handlebars.js-7212e2b7d732dfe37ad94bff187e91c87282a839.tar.gz handlebars.js-7212e2b7d732dfe37ad94bff187e91c87282a839.tar.bz2 |
Got more complex literal expressions working.
Diffstat (limited to 'spec/qunit_spec.js')
-rw-r--r-- | spec/qunit_spec.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js index fe4866a..3d37eee 100644 --- a/spec/qunit_spec.js +++ b/spec/qunit_spec.js @@ -135,6 +135,11 @@ test("literal paths", function() { "Goodbye beautiful world!", "Literal paths can be used"); }); +test("literal paths with square brackets in them", function() { + shouldCompileTo("Goodbye {{[@alan]]/expression}} world!", {"@alan]": {expression: "beautiful"}}, + "Goodbye beautiful world!", "Literal paths with square brackets in them can be used"); +}); + test("--- TODO --- bad idea nested paths", function() { return; var hash = {goodbyes: [{text: "goodbye"}, {text: "Goodbye"}, {text: "GOODBYE"}], world: "world"}; |