nystudio107/craft-templatecomments

Adds a HTML comment with performance timings to demarcate `{% block %}`s and each Twig template that is included or extended.

Maintainers

πŸ‘ khalwat

Package info

github.com/nystudio107/craft-templatecomments

Issues

Documentation

Type:craft-plugin

pkg:composer/nystudio107/craft-templatecomments

Fund package maintenance!

khalwat

Statistics

Installs: 110 990

Dependents: 2

Suggesters: 0

Stars: 20

5.0.6 2026-01-30 21:23 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT cfe44c63d3b1db33f451b5326dde1a9145effade

twigdebuggingcommentscraftcmscraft-plugin


README

πŸ‘ Scrutinizer Code Quality
πŸ‘ Code Coverage
πŸ‘ Build Status
πŸ‘ Code Intelligence Status

Template Comments plugin for Craft CMS 5.x

Adds a HTML comment with performance timings to demarcate {% block %}s and each Twig template that is included or extended.

πŸ‘ Screenshot

Requirements

This plugin requires Craft CMS 5.0.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require nystudio107/craft-templatecomments
    
  3. Install the plugin via ./craft install/plugin templatecomments via the CLI, or in the Control Panel, go to Settings β†’ Plugins and click the β€œInstall” button for Template Comments.

You can also install Template Comments via the Plugin Store in the Craft Control Panel.

Documentation

Click here -> Template Comments Documentation

Template Comments Roadmap

Some things to do, and ideas for potential features:

  • Support wrapping macros in comments

Brought to you by nystudio107