Plates v4.0.0 Release Notes
Release Date: 2018-02-06 // over 5 years ago-
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
- 0๏ธโฃ 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.
Previous changes from v3.3.0
-
- โ Added the ability to append content to sections using the new
push()
function. - โ Added an
end()
function as an alias tostop()
.
- โ Added the ability to append content to sections using the new