From 605dea1f79562f6eb652d8fda748b793e8fe7928 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sat, 22 May 2010 19:59:15 -0400 Subject: [PATCH] Fix for infinite recursion in recursive partials example. --- examples/recursive_partials/RecursivePartials.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/recursive_partials/RecursivePartials.php b/examples/recursive_partials/RecursivePartials.php index d1b820f..5d239c1 100644 --- a/examples/recursive_partials/RecursivePartials.php +++ b/examples/recursive_partials/RecursivePartials.php @@ -2,14 +2,15 @@ class RecursivePartials extends Mustache { protected $_partials = array( - 'child' => "* {{ name }}", + 'child' => "* {{ name }}\n{{#child}}{{>child}}\n{{/child}}", ); public $name = 'George'; public $child = array( - 'name' => 'Dan', + 'name' => 'Dan', 'child' => array( - 'name' => 'Justin', + 'name' => 'Justin', + 'child' => false, ) ); } \ No newline at end of file