diff --git a/README.md b/README.md index 7421a6f..0739937 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Templates looks like Smarty: Display template ```php +display("pages/about.tpl", $data); ``` @@ -31,6 +32,7 @@ $aspect->display("pages/about.tpl", $data); Fetch template's result^ ```php +fetch("pages/about.tpl", $data); ``` @@ -38,6 +40,7 @@ $content = $aspect->fetch("pages/about.tpl", $data); Runtime compilation ```php +compileCode('Hello {$user.name}! {if $user.email?} Your email: {$user.email} {/if}'); $tempate->display($data);