Avg Release Cycle
1635 days ago
$this->clear()method, to empty a layout section entirely
🛠 Fixed bug when rendering template files containing sections more then once using same engine instance.
🛠 Fixed Git issue with tests folder names.
- 🛠 Fixed a couple of minor issue
- 🌲 Implemented code coverage logging and codecov.io
- ➕ Added more unit tests
- ➕ Added badges on readme
🆕 New Features, Issues Solved
- Introduced Blocks and Custom Blocks feature
- Introduced "alias" feature that shorten syntax to access variables and functions inside templates
- Introduced Section Rendering feature
- Better control on registered folders , see docs.
Finder::find()now also accepts an array of template names to be searched in registered folders. The first found is returned.
- Fixed issue on arraization of objects
- 💅 Clean up & code style improvements
Backward Compatibility Breaks
Foil\APIclass has been removed
Foil\Contracts\APIAwareInterfacehas been removed
Foil\Traits\APIAwareTraithas been removed
Foil\Bootstrapperclass has been removed
- 👀 Most of the API functions have been removed. See docs.
Foil\engine()functions now always returns a "fresh" instance of
Foil\Engineclass, whereas in older versions always returned same instance when called more times.
CS and typo fix. Minor clean up.
Easing the process of using custom template classes.
privatemethods in Template class have been changed to
- ➕ add a third argument,
$class, for the