tacoberu/php-lattestrict

Extend of [Latte](https://latte.nette.org): amazing template engine for PHP. Designed for user templates. Removed support for php and similarly dangerous constructions.

dev-master 2019-03-09 16:31 UTC

This package is auto-updated.

Last update: 2024-05-17 22:36:04 UTC


README

Build Status

Extend of Latte: amazing template engine for PHP. Designed for user templates. Removed support for php and similarly dangerous constructions.

Installation

The recommended way to install LatteStrict is via Composer (alternatively you can download package):

composer require tacoberu/php-lattestrict

Usage

$engine = new Taco\LatteStrict\Engine;
$engine->setLoader(new Latte\Loaders\StringLoader);
echo $engine->renderToString($template, $args);

What is removed

  • pure php code, like <?php ... ?>
  • global variables, classes, etc.