tera icon indicating copy to clipboard operation
tera copied to clipboard

`debug` function or filter

Open ctron opened this issue 2 years ago • 3 comments

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.

ctron avatar Oct 01 '23 14:10 ctron

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

Keats avatar Oct 01 '23 17:10 Keats

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

ctron avatar Oct 02 '23 06:10 ctron

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

Keats avatar Oct 02 '23 06:10 Keats