Add support for depthed resolution of data fields

This commit is contained in:
kpdecker
2014-02-09 18:35:22 -06:00
parent fcec69ae2c
commit 16f135835e
6 changed files with 39 additions and 24 deletions
+4
View File
@@ -21,6 +21,10 @@ describe('parser', function() {
equals(ast_for("{{@foo}}"), "{{ @ID:foo [] }}\n");
});
it('parses simple mustaches with data paths', function() {
equals(ast_for("{{@../foo}}"), "{{ @ID:foo [] }}\n");
});
it('parses mustaches with paths', function() {
equals(ast_for("{{foo/bar}}"), "{{ PATH:foo/bar [] }}\n");
});