yireo/shopware6-add-twig-template-name

Shopware 6 plugin to add the template name to all Twig templates

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Type:shopware-platform-plugin

0.0.1 2021-05-16 13:38 UTC

This package is not auto-updated.

Last update: 2024-11-12 03:44:14 UTC


README

DEPRECATED: Use https://github.com/FriendsOfShopware/FroshDevelopmentHelper instead

This plugin adds - once enabled - comments in the HTML document with the names of Twig templates. For example:

<!-- @Storefront/storefront/base.html.twig --><!DOCTYPE html>
<!-- @Storefront/storefront/base.html.twig --><html lang="en-GB" itemscope="itemscope" itemtype="https://schema.org/WebPage">

Usage

composer require yireo/shopware6-add-twig-template-name
bin/console plugin:refresh
bin/console plugin:install --activate YireoAddTwigTemplateName
bin/console cache:clear 

Disclaimer

The majority of the code of this plugin was proudfully borrowed from the awesome oroinc/twig-inspector. A Shopware plugin for that tool is in the works too: yireo-shopware6/shopware6-twig-inspector