diff options
author | Alan Johnson <alan@commondream.net> | 2011-09-02 10:36:59 -0400 |
---|---|---|
committer | Alan Johnson <alan@commondream.net> | 2011-09-02 10:36:59 -0400 |
commit | f2f1f5f9bd2275890720775e8db4bc1ce51bfdef (patch) | |
tree | 21cd1bba7065b6369a6e163dae49fe8ea9688a92 /spec/qunit_spec.js | |
parent | 7212e2b7d732dfe37ad94bff187e91c87282a839 (diff) | |
download | handlebars.js-f2f1f5f9bd2275890720775e8db4bc1ce51bfdef.zip handlebars.js-f2f1f5f9bd2275890720775e8db4bc1ce51bfdef.tar.gz handlebars.js-f2f1f5f9bd2275890720775e8db4bc1ce51bfdef.tar.bz2 |
Wrote a quick test for partials with literal paths.
Diffstat (limited to 'spec/qunit_spec.js')
-rw-r--r-- | spec/qunit_spec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js index 3d37eee..b5ce883 100644 --- a/spec/qunit_spec.js +++ b/spec/qunit_spec.js @@ -459,6 +459,13 @@ test("GH-14: a partial preceding a selector", function() { shouldCompileToWithPartials(string, [hash, {}, {dude:dude}], true, "Dudes: Jeepers Creepers", "Regular selectors can follow a partial"); }); +test("Partials with literal paths", function() { + var string = "Dudes: {{> [dude]}}"; + var dude = "{{name}}"; + var hash = {name:"Jeepers", another_dude:"Creepers"}; + shouldCompileToWithPartials(string, [hash, {}, {dude:dude}], true, "Dudes: Jeepers", "Partials can use literal paths"); +}); + module("String literal parameters"); test("simple literals work", function() { |