summaryrefslogtreecommitdiffstats
path: root/spec/qunit_spec.js
diff options
context:
space:
mode:
authorAlan Johnson <alan@commondream.net>2011-09-02 09:10:20 -0400
committerAlan Johnson <alan@commondream.net>2011-09-02 09:10:20 -0400
commit7212e2b7d732dfe37ad94bff187e91c87282a839 (patch)
treebc9097b8f3d7187d85d795f88317543f57d090db /spec/qunit_spec.js
parentfc84308cc9124c94dcd372629d15bd10ce30875d (diff)
downloadhandlebars.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.js5
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"};