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.
⚠️ Update minimum Twig version to 3.0 (#30)⚠️ Update minimum PHP version to 8.1 (#30, 6134a42)- Update spatie/url to ^2.4 (ffcf361)
⚠️ Removes themerge_html_attributes()Twig filter, use themerge_html_attributesfunction instead (#31)⚠️ Removes theclassTwig function, use thehtml_classesfunction instead (#31)⚠️ Removes theattributesTwig function, use thehtml_attributesfunction instead (#31)⚠️ Removes the@metaalias without replacement (#31)
- Fix attribute rendering by omitting
nullorfalseattributes instead of empty attributes (#26)
- Fix the
html_elementtag with Twig 3.9.0 (#23)
- Fix handling of CSS custom properties by the
html_stylesfunction (2ce4f36)
- Fixed mismatch of version number (41693ef)
- Fix parsing of URLs with Browsersync (54b0833)
- Fix query parameters being encoded (cb3a820)
- Fix
twig_toolkit_urlfunction throwing an error when used with anullvalue (#16)
- Add a
twig_toolkit_urlfunction to wrap a string in aSpatie\Url\Urlinstance from thespatie/urlpackage (#15)
- Fix
renderAttributesto be compliant with PHP 8.1 (#14)
- Do not render empty attributes (#12)
- Improve readability of rendered HTML (#12)
- Add support for null parameters for the
merge_html_attributesfilter (4230c37, #10) - Add a
merge_html_attributesfunction based on the filter of the same name (fdddef2, #10)
- Fix warnings when using
html_classeswith an empty array (#9)
- Add a
merge_html_attributes(default, required)filter (#7) - Add a
html_styles()function (#3) - Add test coverage
- Rename the
class()andattributes()Twig functions tohtml_classes()andhtml_attributes()(815cd6c)
- Fix a bug where falsy attributes were still added to the rendered attributes (e445a35)