All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Superlinter with Markdown support
- Set minimum PHP version to 7.4.0.
- Skip empty blocks in the blocks tag using the
skip empty
keyword - Variables
context
,template
,type
are accessible inside the blocks tag - PHPCS PSR2 rules
- PHPStan rules
- Github actions to test PHPCS and PHPStan
- Fixed
block.template
not accessible in the template because Twig was trying to access the protectedblock.template
property instead ofblock.getTemplate()
- Fixed wrong order in CHANGELOG.md
- Typo in class name
InvalicBlockException
- The class Blocky is not correctly importing the exception classes
- Translation files, as these only contained exception translations
- All instances of
Craft::t()
in exceptions
- Added
{% blocks %}
Twig tag to simplify templating
- Moved the main block parser functionality so that it is now available at
Blocky::$plugin->parseBlocks()
- This is consumed by the new
{% blocks %}
Twig tag and{% craft.blocky.blockparser() %}
- This is consumed by the new
- Cleaned up plugin code and fixed some code style issues
- Initial release