Skip to content
Browse files

Add template override test: "Partials can override overridable sectio…

…ns in their own overridable partials"
  • Loading branch information...
1 parent fc1551b commit f68132440306dd3adc6b2b659dccb1c529e0e1a0 @groue committed Sep 29, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/tests/Public/v5.2/GRMustacheSuites5_2/overridable_partials.json
View
9 src/tests/Public/v5.2/GRMustacheSuites5_2/overridable_partials.json
@@ -95,6 +95,15 @@
"expected": "partial1"
},
{
+ "name": "Partials can override overridable sections in their own overridable partials",
+ "data": { },
+ "template": "{{>partial1}}",
+ "partials": {
+ "partial1": "{{<partial2}}{{$overridable}}partial1{{/overridable}}{{/partial2}}",
+ "partial2": "{{$overridable}}ignored{{/overridable}}" },
+ "expected": "partial1"
+ },
+ {
"name": "Templates can override overridable sections in partials embedded in overridable partials",
"data": { },
"template": "{{<partial1}}{{$overridable}}overriden{{/overridable}}{{/partial1}}",

0 comments on commit f681324

Please sign in to comment.
Something went wrong with that request. Please try again.