evoluted/twigtools-plugin
Composer 安装命令:
composer require evoluted/twigtools-plugin
包简介
Useful development debugging tools for Twig on PyroCMS 3.x
README 文档
README
Twigtools is a PyroCMS plugin, providing useful tools for development and debugging with twig.
Initially this provides the following functions inside twig templates:
ddDumps an item and kills the rest of the page.debugDumps an item and continues executiondebugDebugs an item to Debugbar under the Messages tab
Installing
You can install this plugin into your existing PyroCMS 3.x installation by requiring it inside your composer file:
"require-dev": {
"evoluted/twigtools-plugin": "~1.0",`
}
Or by running the command line composer install command:
composer require evoluted/twigtools-plugin
Once installed you will not have to perform any additional actions to start using this plugin.
Usage
dd
dd(yourVariable)
Uses Laravels dump method, and stops execution.
dump
dump(yourVariable)
Uses Laravels dump method, but continues rendering the rest of the page.
debug
debug(yourVariable)
Debugs a variable to Laravel Debugbar (if it is installed)
Future Ideas
- Manipulation of objects and arrays (E.g resorting, inserting within arrays, etc)
- Debug to log files from within twig
Release History
- 1.0.0
- Initial release, containing
dd(),debug(),debug()
- Initial release, containing
Contributing
- Fork it (https://github.com/EvolutedNewMedia/twigtools-plugin/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request
统计信息
- 总下载量: 2.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-20