Got more complex literal expressions working.

This commit is contained in:
Alan Johnson
2011-09-02 09:10:20 -04:00
parent fc84308cc9
commit 7212e2b7d7
+5
View File
@@ -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"};