Aspect PHP Template Engine
==========================
> Composer package: `"bzick/aspect": "dev-master"`. [How to install](./docs/install.md).
>
> Build status: [![Build Status](https://travis-ci.org/bzick/aspect.png?branch=master)](https://travis-ci.org/bzick/aspect)
## [About](./docs/about.md) :: [Documentation](./docs/main.md) :: [Benchmark](./docs/benchmark.md) :: [Bugs](https://github.com/bzick/aspect/issues) :: [Articles](./docs/articles.md)
Primitive template
```smarty
Aspect
{if $templaters.aspect?}
{var $tpl = $templaters.aspect}
Name: {$tpl.name}
Description: {$tpl.name|truncate:80}
{foreach $tpl.features as $feature}
- {$feature.name} (from {$feature.timestamp|gmdate:"Y-m-d H:i:s"})
{/foreach}
{/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);
```