djc / askama

Type-safe, compiled Jinja-like templates for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document the `fmt` filter

Kijewski opened this issue · comments

Looking at the generator code I cannot tell, and it is not documented in the book. The code ensures that no more than 2 arguments are given (the first argument being the left-hand side of the pipe), but the second argument in …|fmt(second) is never used anyway.

Is this filter simply a broken copy of …|format?

Ah, git blame told me it's related to #345. Also, I did not read the code properly, the argument is used.

So any questions/concerns left here?

Yeah, the documentation is still missing.