Releases: cakephp/twig-view
Releases · cakephp/twig-view
TwigView 1.0.1
Fixes
-
Templates now load the same using either Twig or View functions.
Previously, templates loaded through
extends
orinclude()
required the file extension and only loaded from the local templates directory. Now, they can load from plugins and anywhere View loads templates.Users who wrote custom Twig templates with 1.0.0 that used the full filename will need to remove the .twig extension.
Loading templates through View functions like
element()
andcell()
should work the same as before.
TwigView 1.0.0
cakephp/twig-view 1.0 is the official plugin for Twig template views in your CakePHP application. This package replaces wyrihaximus/twig-view and provides tighter coupling with CakePHP.
New Features
- Configuration through
ViewBuilder
. - Overriding Twig initialization through your
AppView
. No more event-based configuration. fetch()
,element()
andcell()
functions allow you to access View data in a Twig-friendly way. No more|raw
after every call.- Easy
markdown_to_html()
support withDefaultMarkdown
.
Backwards Compatibility
element
andcell
tags from wyrihaximus/twig-view supported with deprecation warnings.
1.0.0-RC2
2nd release candidate.
- Fixed loading .twig files directly with Twig tags and functions like
include()
1.0.0-RC1
First release candidate.
1.0.0-beta2
2nd beta.
1.0.0-beta1
1st release.