dev-master
9999999-dev http://doc.nette.org/en/2.1/templatingZf2 module for Latte templating engine integration
BSD-3-Clause
The Requires
- latte/latte 2.2.*@dev
- php >=5.3.3
- zendframework/zendframework 2.*
The Development Requires
zf2 latte templates
Wallogit.com
2017 © Pedro Peláez
Zf2 module for Latte templating engine integration
Latte is state of the art templating system, part of Nette framework, leaving others behind mainly in powerful XSS defence., (*2)
This is not a stable solution yet. Feel free to participate on development:), (*3)
Basic latte support works. Zend view helpers work by accessing $helper object in template., (*4)
{$helper->headScript()} {* will be printed and escaped *}
{?$helper->headScript()} {* will not be printed *}
Layouts work. It by default disables native layout in ZF, as Latte has great and simple support for them, also supporting multiple layouts depending on template. If you still want to use default ZF layout system in some actions, you can. It disables is only if latte template is active template., (*5)
Translation macro {_} is configurable via 'translator_callback' key., (*6)
Loads template_map and template_path_stack., (*7)
Supports n:href which maps to $helper->url(). Can be used like this even if you use PHP without short array syntax []:, (*8)
<a n:href="application, [controller => application, action => index]">link</a>
Macros like control, form and similar are not present, as they are based on Nette internal components., (*9)
This is composer package. For library instalation include into your composer.json following line, (*10)
"require": {
"halaxa/zf2-latte": "dev-master"
}
For development installation and running tests you can do something like:, (*11)
composer create-project halaxa/zf2-latte zf2-latte dev-master --prefer-source --no-install --keep-vcs cd zf2-latte composer install --prefer-dist --dev ./vendor/bin/tester test/tests
Zf2 module for Latte templating engine integration
BSD-3-Clause
zf2 latte templates