Releases: thephpleague/plates
Releases · thephpleague/plates
Version 3.6.0
What's Changed
- Fix badge with
build
status inREADME.md
by @gomzyakov in #304 - Compatability with php 8.4 by @srjlewis in #328
- ENT_SUBSTITUTE is defined since php 5.4 by @pine3ree in #313
- Update asset.md to show public assets path in examples by @RawkBob in #318
- Fix dynamic property deprecations / Upgrade php min versions by @ragboyjr in #329
New Contributors
- @gomzyakov made their first contribution in #304
- @srjlewis made their first contribution in #328
- @pine3ree made their first contribution in #313
- @RawkBob made their first contribution in #318
Full Changelog: v3.5.0...v3.6.0
Version 3.5.0
What's Changed
- Themes Support #234 by @ragboyjr in #270
- Change callback PhpDoc type to callable by @vixducis in #285
- Escape can take a null parameter php8.1 by @visavi in #297
- Implement documented data assignment argument for
Engine->make()
by @Rayne in #302 - Adding Community Extension by @basteyy in #275
New Contributors
- @vixducis made their first contribution in #285
- @visavi made their first contribution in #297
- @Rayne made their first contribution in #302
- @basteyy made their first contribution in #275
Full Changelog: v3.4.0...v3.5.0
3.4.0 - PHP 8 Support / Unshift Sections
Added
- Added new unshift method in templates to support prepending content to sections (thanks @kozubsky)
- Added support for PHP8 (thanks @roxblnfk)
Changed
- Dropped explicit support for php 5. PHP 7/8 is allowed in composer, and only php 7.3-8.0 are tested in CI pipeline.
Internal Changes
- Minor modifications to repo workflow for CI with GitHub Actions instead of Travis
- Migrated docs from Jekyll to Hugo
4.0.0 Alpha - [ABANDONED]
EDIT (12/24/2020): This release has been abandoned. Some of this work will be merged into the v3 branch, but most of it has been scrapped. This tag will still be available, but a version 4 will not be based off of this alpha release.
v4 has been a complete rewrite in the plates system. It's fairly backwards compatible, but a lot of the internals have changed, and we still have a decent amount of features and work to do for v4.
Significant Changes
- Templates are Immutable VO's
- Rendering is handled via RenderTemplate interfaces
- Extensions are first class citizens
- The Engine is now a small wrapper for an IoC Container
New Features
- RenderContext API for defining composable functions and more
- Components
- Powerful and customizable naming strategies for dynamic base paths
- Multi folder fallbacks
- Relative and Absolute Path templates
- Better Error Handling
- Default Layouts
- Deep Sections #169
- Template Composers
- Static File Rendering
- Image/Base64Encoding Rendering
- And probably a few more ;p
Documentation is lacking for many of these features. Contributions are welcome! The best way to learn about the features it to look at the tests and examples.
3.3.0
3.2.0
- Fixed an issue where template functions were not accessible from extensions.
- Fixed an issued with the URI extension throwing errors when it shouldn't.
- Added the ability to get all template data by calling
$template->data()
. - Added the ability to render a template via the
toString()
magic method. - Added the ability to run the tests using
composer test
. - Improvements to error handling when rendering templates.
- Various coding style, CI and documentation improvements.