Aspect PHP Template Engine ========================== ## [About](./docs/about.md) | [Documentation](./docs/main.md) | [Benchmark](./docs/benchmark.md) | [Bugs](https://github.com/bzick/aspect/issues) | [Articles](./docs/articles.md) Smarty-like syntax: ```smarty Aspect {if $templaters.aspect?} {var $tpl = $templaters.aspect}
Name: {$tpl.name}
Description: {$tpl.name|truncate:80}
{/if} ``` Display template ```php display("pages/about.tpl", $data); ``` Get content ```php fetch("pages/about.tpl", $data); ``` Runtime compilation ```php compileCode('Hello {$user.name}! {if $user.email?} Your email: {$user.email} {/if}'); $tempate->display($data); // or $content = $tempate->fetch($data); ```