yireo / shopware6-add-twig-template-name
Shopware 6插件,用于将模板名称添加到所有Twig模板中
0.0.1
2021-05-16 13:38 UTC
This package is not auto-updated.
Last update: 2024-09-17 03:01:08 UTC
README
已弃用:请使用https://github.com/FriendsOfShopware/FroshDevelopmentHelper代替
此插件一旦启用,将在HTML文档中添加带有Twig模板名称的注释。例如
<!-- @Storefront/storefront/base.html.twig --><!DOCTYPE html> <!-- @Storefront/storefront/base.html.twig --><html lang="en-GB" itemscope="itemscope" itemtype="https://schema.org/WebPage">
使用方法
composer require yireo/shopware6-add-twig-template-name bin/console plugin:refresh bin/console plugin:install --activate YireoAddTwigTemplateName bin/console cache:clear
免责声明
此插件的大部分代码自豪地借鉴了出色的oroinc/twig-inspector。该工具的Shopware插件也在开发中:yireo-shopware6/shopware6-twig-inspector