Skip to content

OctoberCMS plugin that adds the d() function to Twig for recursively dumping passed variables

License

Notifications You must be signed in to change notification settings

inetis-ch/oc-dump-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

OctoberCMS plugin to improve debugging in Twig.

Adds the d() function to Twig to recursively dump provided variables in the same manner as Laravel's dd() function. Unlike Twig's native dump() function, d() displays all nested members of the provided variables.

Usage

Dumping a single variable

{{ d(myCollection) }}

Twig d() Collection demo

Dumping multiple variables

{{ d(var1, var2) }}

dump mulitvars

Author

inetis is a webdesign agency in Vufflens-la-Ville, Switzerland. We love coding and creating powerful apps and sites see our website.

About

OctoberCMS plugin that adds the d() function to Twig for recursively dumping passed variables

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages