https://github.com/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.
https://github.com/tacoberu/php-lattestrict
Last synced: 5 months ago
JSON representation
Extend of [Latte](https://latte.nette.org): amazing template engine for PHP. Designed for user templates. Removed support for php and similarly dangerous constructions.
- Host: GitHub
- URL: https://github.com/tacoberu/php-lattestrict
- Owner: tacoberu
- License: mit
- Created: 2018-02-03T17:51:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-09T16:32:10.000Z (over 6 years ago)
- Last Synced: 2024-12-27T08:27:25.226Z (7 months ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
LatteStrict
===========[](https://travis-ci.org/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.
Installation
============The recommended way to install LatteStrict is via Composer (alternatively you can [download package](https://github.com/tacoberu/php-lattestrict/releases)):
```bash
composer require tacoberu/php-lattestrict
```Usage
=====```php
$engine = new Taco\LatteStrict\Engine;
$engine->setLoader(new Latte\Loaders\StringLoader);
echo $engine->renderToString($template, $args);
```What is removed
===============* pure php code, like ``
* global variables, classes, etc.