Fenom - Template Engine for PHP =============================== > Composer package: `{"fenom/fenom": "2.*"}`. See on [Packagist.org](https://packagist.org/packages/fenom/fenom) [![Latest Stable Version](https://poser.pugx.org/fenom/fenom/v/stable.png)](https://packagist.org/packages/fenom/fenom) [![Build Status](https://travis-ci.org/bzick/fenom.svg?branch=develop)](https://travis-ci.org/bzick/fenom) [![Coverage Status](https://coveralls.io/repos/bzick/fenom/badge.png?branch=develop)](https://coveralls.io/r/bzick/fenom?branch=master) [![Total Downloads](https://poser.pugx.org/fenom/fenom/downloads.png)](https://packagist.org/packages/fenom/fenom) ## [Usage](./docs/usage.md) :: [Documentation](./docs/readme.md) :: [Benchmark](./docs/benchmark.md) :: [Articles](./docs/articles.md) * Simple [syntax](./docs/syntax.md) * [Fast](./docs/benchmark.md) * [Secure](./docs/settings.md) * [Flexible](./docs/ext/extensions.md) * [Lightweight](./docs/benchmark.md#stats) * [Powerful](./docs/readme.md) * Easy to use: Simple template ```smarty Fenom {if $templaters.fenom?} {var $tpl = $templaters.fenom}
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}'); $template->display($data); // or $content = $template->fetch($data); ```