Aspect PHP Template Engine ========================== > Composer package: n/a ## [About](./docs/about.md) | [Documentation](./docs/main.md) | [Benchmark](./docs/benchmark.md) | [Bugs](https://github.com/bzick/aspect/issues) | [Articles](./docs/articles.md) [![Build Status](https://travis-ci.org/bzick/aspect.png?branch=master)](https://travis-ci.org/bzick/aspect) 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); ```