Version 4.0.4

November 29, 2024

Changed

  • Defer installing Template Comments until Craft is fully setup, to avoid a "Twig instantiated before Craft is fully initialized" warning (#50)

Version 4.0.3

September 6, 2024

Changed

  • Template Comments now requires craftcms/cms ^4.12.0 going forward, because of the addition of breaking changes in the version of Twig that it requires

Fixed

  • Fixed an issue with a change in Twig 3.12.0 (which is now used by Craft 4.12.0) which would cause an exception to be thrown when rendering templates with an empty {% block %} tag (#46)
  • Fixed an issue with a change in Twig 3.12.0 (which is now used by Craft 4.12.0) which would cause an exception to be thrown when rendering templates (#45)

Version 4.0.2

August 6, 2024

Fixed

  • Fixed an issue where Template Comments would cause the Craft Closure ^1.0.6 package to not work

Version 4.0.1

April 18, 2024

Added

  • Added support for template comments for {% include %} and {% extends %} back into the plugin (#40)
  • Add phpstan and ecs code linting
  • Add code-analysis.yaml GitHub action

Changed

  • Updated docs to use node 20 & a new sitemap plugin
  • PHPstan code cleanup
  • ECS code cleanup

Version 4.0.0

May 7, 2022

Added

  • Initial release for Craft CMS 4

Version 4.0.0-beta.2

March 12, 2022

Added

  • Added excludeBlocksThatContain config setting to allow excluding of template comments based on the {% block %} name

Version 4.0.0-beta.1

March 12, 2022

Added

  • Initial Craft CMS 4 compatibility