summaryrefslogtreecommitdiffstats
path: root/spec/qunit_spec.js
diff options
context:
space:
mode:
authorLes Hill <leshill@gmail.com>2012-12-13 10:33:20 -0800
committerLes Hill <leshill@gmail.com>2012-12-13 11:15:38 -0800
commit4bb794d814d068361a101a87735e2b9bbcee5115 (patch)
tree954c5fab968696bc3364671ecca47e6ac6c8a4f9 /spec/qunit_spec.js
parentfd0560b95124bd6d335c0bd6af907281a22d72ea (diff)
downloadhandlebars.js-4bb794d814d068361a101a87735e2b9bbcee5115.zip
handlebars.js-4bb794d814d068361a101a87735e2b9bbcee5115.tar.gz
handlebars.js-4bb794d814d068361a101a87735e2b9bbcee5115.tar.bz2
Partials can be paths
Allows partials with slashes, a common partial syntax. For example: {{> shared/dude}}
Diffstat (limited to 'spec/qunit_spec.js')
-rw-r--r--spec/qunit_spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js
index 5c94253..9999cb2 100644
--- a/spec/qunit_spec.js
+++ b/spec/qunit_spec.js
@@ -521,11 +521,11 @@ 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]}}";
+test("Partials with slash paths", function() {
+ var string = "Dudes: {{> shared/dude}}";
var dude = "{{name}}";
var hash = {name:"Jeepers", another_dude:"Creepers"};
- shouldCompileToWithPartials(string, [hash, {}, {dude:dude}], true, "Dudes: Jeepers", "Partials can use literal paths");
+ shouldCompileToWithPartials(string, [hash, {}, {'shared/dude':dude}], true, "Dudes: Jeepers", "Partials can use literal paths");
});
suite("String literal parameters");