vapor / leaf-kit

🍃 An expressive, performant, and extensible templating language built for Swift.
https://docs.vapor.codes/4.0/leaf/getting-started
MIT License
47 stars 38 forks source link

Provide a way to dump the current context as JSON via a tag #112

Closed tonyarnold closed 2 years ago

tonyarnold commented 2 years ago

Is your feature request related to a problem? Please describe. When debugging Leaf templates in complex applications, I often find it extremely difficult to work out what is being provided as context to the current rendering.

Describe the solution you'd like I'd love to be able to quickly dump out the complete context to my work-in-progress.

Describe alternatives you've considered I'm not sure there are alternatives? I can keep poking around and manually looking for what I've missed.