webonaute / twig-debug-helper-bundle
允许前端开发者通过在输出源中添加模板引用来查看HTML是在哪个模板中生成的。
2.0.0
2018-03-20 15:22 UTC
Requires
- php: >=7.2
- symfony/framework-bundle: ^3.4 || ^4.0
- twig/twig: ^1.12
This package is auto-updated.
Last update: 2024-09-26 03:21:20 UTC
README
===============================
帮助前端开发者找到HTML所在的模板。
注意:强烈不推荐在生产环境中使用此包。
安装
Symfony <= 3.3
运行 composer require webonaute/twig-debug-helper-bundle ^1.0
Symfony > 3.4
运行 composer require webonaute/twig-debug-helper-bundle ^2.0
配置
将这些两行添加到您的 config_dev.yml 文件中
twig:
base_template_class: Webonaute\TwigDebugHelperBundle\Twig\DebugTemplate
许可证
此包遵循MIT许可证。在包中查看完整的许可证。
Resources/meta/LICENSE