Plugin screenshot thumbnail 1/2
Plugin screenshot thumbnail 2/2

Template Comments is a debugging tool that wraps your Twig {% block %}s with HTML comments. By default, it does this only when devMode is on.

It also records performance data, so you know how much overhead each {% block %} or {% include %} is adding.

With more complicated "content builder" setups, this can help bring clarity to where the various HTML on your pages is coming from.

This can be especially handy when dealing with OPC (Other People's Code). It solves this problem.

In Craft 5, it also adds support for Rendering Elements by outputting comments for the _partials templates that are rendered via Craft 5's .render() function.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Active Installs
2,478
Version
5.0.0
License
MIT
Compatibility
Craft 3, Craft 4, Craft 5
Last release
April 19, 2024
Activity (30 days)
2
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs