Vincent Prouillet
Vincent Prouillet
Is there a crate doing strftime handling for `time`?
I've already replaced chrono with time in a few projects, it's just that Tera uses `strftime` so unless there is a crate for that with `time`, I'm not going to...
Hm it might work! I (or someone else if they have time) should check how easy it is to replace the current chrono usage with time + time-fmt
I guess it would become `Foo`?
> So, I'll suggest this really ought to be deprecated because its a bad idea all around. Likely to be removed for v2.
Ah damn, must be something in the grammar...
If I understood correctly, it's the expected behaviour. `y` is defined as `None`, `{%- if foo.x.z is undefined %}` should throw though, assuming there's no field named `z`.
I will need to double-check, the `undefined` test code seem like it should fail on that but I haven't looked at that part of the code in a long time.
In Tera, template outside of blocks is completely ignored in children. The way to do it here is to define a block in your parent template and override it in...
> Another possible speedup would be turning everything into JSON pointers at template parse time, and storing those. I like that idea, probably for v2 though