set default value for render context to empty array
This commit is contained in:
committed by
Justin Hileman
parent
9e5ef08fbf
commit
cdcfeed67d
@@ -165,7 +165,7 @@ class Mustache_Engine
|
|||||||
*
|
*
|
||||||
* @return string Rendered template
|
* @return string Rendered template
|
||||||
*/
|
*/
|
||||||
public function render($template, $data)
|
public function render($template, $data = array())
|
||||||
{
|
{
|
||||||
return $this->loadTemplate($template)->render($data);
|
return $this->loadTemplate($template)->render($data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user