Results 1383 comments of Vincent Prouillet

The split filter is just the Rust `split` fn :/ I'm not sure what's the deal with the leading element missing.

Damn that's a silly omission. Changing it is a breaking change though :(

You can have a look at https://github.com/Keats/tera/blob/master/src/builtins/functions.rs for some examples of built-in functions

Sorry for the awful documentation. Have you seen the awful API documentation as well on https://docs.rs/tera/latest/tera/trait.Function.html? That should answer some of your questions.

The context takes anything that impl Serialize.

The underlying time library (chrono) only supports English locale currently :/

Looks like https://github.com/chronotope/chrono/pull/453 is merged? I haven't checked how to use it and whether it's actually complete/working though. A hacky version would be to have some JavaScript reformatting the dates...

> I think "locale" refers to timezone, not language (or timezone and language). I should have read that issue first :( I don't think there is a solution in Rust...

I believe that would only happen for a new version, not for v1

When you say hashmap you are only talking about the indexing? I feel like the example should work already since there is `[]` indexing but maybe it's too limited.