Keats / tera

A template engine for Rust based on Jinja2/Django
http://keats.github.io/tera/
MIT License
3.5k stars 281 forks source link

`debug` function or filter #860

Open ctron opened 1 year ago

ctron commented 1 year ago

Dumping a complex object prints out [object]. For debugging purposes, it would be great to have something like: {{ page | debug}}.

Maybe it's already there, I couldn't find it.

Keats commented 1 year ago

Not for v1, but v2 (https://github.com/Keats/tera2 if you want to try it) does display objects correctly

ctron commented 1 year ago

Ah, I am not using tera directly, but through zola.

Keats commented 1 year ago

That would have to wait until v2 is released and zola uses it then