Christian Vallentin

Results 100 comments of Christian Vallentin

I'm always pressed for time as well. But if you'd like a go, then I can wait. Just say whenever you think you have time, and keep us posted if...

Alright, fair enough :) (I'll continue with my initial plan then, to hack at it later or during the weekend)

Hmm, maybe we should have the generator produce a variable for the for-loop expression instead. Then we avoid situations where that is needed to be done manually. Additionally, the for-loop...

> the iterator is stored in _iter. Ahh, right > The problem is that calling iter() in line 644 fails some test with "type annotations needed", so I guess we...

For some reason I misinterpreted this as "conditional blocks", and was about to suggest `{% elseblock %}`. I didn't read through the code yet, but will do later when I...

> [...] in order to match them more efficient Do you have a more concrete example of what you need this for? That said, I've encountered the need a few...

> Sorry, took a little, gotta learn for exams. No need to say sorry, we're not in a hurry. Take all the time you need :) > The code should...

Alright great, that cleared it up for me :) It's on the border, of _allowing_ more and more logic in templates. Not that I'm against it as being supported. @djc...

I was just following the existing semantics. Every time (rarely) I have to use `match` in Askama, it always ends up confusing me. Something about the `when ... with ...`...

Check out the Askama book, specifically the [Integrations](https://djc.github.io/askama/integrations.html) page. It links to [this test](https://github.com/djc/askama/blob/main/askama_warp/tests/warp.rs) in the `askama_warp` crate. That being said, maybe the test/example needs to be improved. Because I...