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.

Reviews

This plugin doesn't have any reviews.

Active Installs
1,482
Version
4.0.4
License
MIT
Compatibility
Craft 3, Craft 4, Craft 5
Last release
November 29, 2024
Activity (30 days)
1
Closed Issues
0
Open Issues
0
Merged PRs
2
Open PRs