Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-09T16:32:10.000Z (almost 6 years ago)
- Last Synced: 2024-04-22T06:11:32.878Z (8 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
===========[![Build Status](https://travis-ci.org/tacoberu/php-lattestrict.svg?branch=master)](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.