mildlygeeky / craft_kint

Adds Kint, an in-app PHP debugger, to Craft CMS for use in Twig and PHP.
MIT License
47 stars 4 forks source link

Consider making variables into Twig functions #3

Closed BenParizek closed 8 years ago

BenParizek commented 8 years ago

Currently, we can use the kint plugin on template variables like so:

{{ craft.kint.dd(entry) }}

It would be possible to shorten that a good bit by updating the variables to be Twig functions instead:

{{ dd(entry) }}

bossanova808 commented 8 years ago
mildlygeeky commented 8 years ago

Thanks — just taught myself how to write them, and added them into version 1.1.0 which is now available. :)