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.
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
pkg:composer/tacoberu/php-lattestrict
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: 2025-09-18 01:19:33 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.