Skip to content

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

License

Notifications You must be signed in to change notification settings

nystudio107/craft-templatecomments

Repository files navigation

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

About

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

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published