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
Requires
- nette/utils: ^2.3
Requires (Dev)
- latte/latte: ^2.3
- phpunit/phpunit: ^4.0
- tracy/tracy: ^2.3
This package is auto-updated.
Last update: 2024-11-17 23:36:56 UTC
README
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.