|
@@ -132,6 +132,19 @@ class Engine
|
|
|
return $content;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Outputs a rendered template.
|
|
|
+ *
|
|
|
+ * @param string $name A template name
|
|
|
+ * @param array $parameters An array of parameters to pass to the template
|
|
|
+ *
|
|
|
+ * @see render()
|
|
|
+ */
|
|
|
+ public function output($name, array $parameters = array())
|
|
|
+ {
|
|
|
+ echo $this->render($name, $parameters);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Gets a helper value.
|
|
|
*
|