From 558cafc1fed4ce294aebcebdf6bf183ed8e202db Mon Sep 17 00:00:00 2001 From: Ivan Shalganov Date: Fri, 7 Feb 2014 22:44:03 +0300 Subject: [PATCH] Update usage.md --- docs/usage.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/usage.md b/docs/usage.md index a7eff94..e008084 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -3,31 +3,31 @@ Basic usage ### Initialize Fenom -Use factory method +Creating an object via factory method ```php $fenom = Fenom::factory('/path/to/templates', '/path/to/compiled/template', $options); ``` -Use `new` operator +Creating an object via `new` operator ```php $fenom = new Fenom(new Provider('/path/to/templates')); $fenom->setCompileDir('/path/to/template/cache'); $fenom->setOptions($options); ``` -### Render template +### Rendering template Output template ```php $fenom->display("template/name.tpl", $vars); ``` -Get template into the variable +Get the result of rendering the template ```php $result = $fenom->fetch("template/name.tpl", $vars); ``` -Create pipe-line into callback +Create the pipeline of rendering into callback ```php $fenom->pipe( "template/sitemap.tpl",