3 ms·
> Very good. But serde needs to get stable :( I agree :( > This is a request that comes up often but I tested this so much and always came back to not doing m
by Keats 10y ago
> Very good. But serde needs to get stable :(
I agree :(
> This is a request that comes up often but I tested this so much and always came back to not doing magic. It breaks too many applications in unintended ways (particularly plain text output).
That was even the first feature request I got. I don't think I'll go more into magic than what it currently is, seems to be okay-ish
> I would not do that again. Jinja has an extension interface and I regret adding it. I much rather have people just expose functions to the templates. That said, in Rust that might be not a good idea because there are no keyword arguments so make it makes sense there.
That was my first thought on a better way to do template tags but not sure how to do that in Rust.
If anyone has an idea, there's https://github.com/Keats/tera/issues/23 https://github.com/Keats/tera/issues/23 now
Good point about macros, maybe I can have a look later. Macros and include feel like they fill the same spot in my mind in terms of features so I'd rather not have both.
- lomnakkus 10y ago> Good point about macros, maybe I can have a look later. Macros and include feel like they fill the same spot in my mind in terms of features so I'd rather not have both. You could always repurpose includes as imports, i.e. not generate any output from imports, but to allow their use as purely an organizational tool for importing macros.