Browse Source

Update docs, variable name for render passthrough.

Justin Hileman 12 năm trước cách đây
mục cha
commit
3fb7fdc2ac
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/Mustache/Engine.php

+ 3 - 3
src/Mustache/Engine.php

@@ -161,13 +161,13 @@ class Mustache_Engine
      * @see Mustache_Template::render
      *
      * @param string $template
-     * @param mixed  $data
+     * @param mixed  $context (default: array())
      *
      * @return string Rendered template
      */
-    public function render($template, $data = array())
+    public function render($template, $context = array())
     {
-        return $this->loadTemplate($template)->render($data);
+        return $this->loadTemplate($template)->render($context);
     }
 
     /**