tera
tera copied to clipboard
A template engine for Rust based on Jinja2/Django
Hello! Consider a string literal which has all three delimiters as chars in that string then how to escape string delimiter (`'`, `` ` ``, `"`) in a string literal?...
Hello! From https://tera.netlify.app/docs/#literals: "arrays: a comma-separated list of literals and/or idents surrounded by [ and ] (trailing comma allowed)" Since array is a literal and array is a comma-separated list...
Hello! Currently, Tera allows only `==` and `!=` [comparison ops](https://tera.netlify.app/docs/#comparisons) on strings. i.e. following usage works: ``` {{ "foo" == "bar" }} {{ "foo" != "bar" }} ``` We should...
Hello! What do you think about allowing concatenation on arrays? E.g. ``` {{ [1, 'foo', 5] ~ [8, 3] }} = [1, 'foo', 5, 8, 3] {{ [1, 'foo', 5]...
What should happen if the index falls outside the array bounds? 1. return empty string OR 2. error At present, `nth(n=-1)` gives error while `nth(n=100)` gives empty string (for array...
When I create a partial that's included in parent html and that partial contains a block, that block is not being overridden when in a child overrides it: 1. I...
It would be nice if the builtin `sort` filter had a `case_sensitive` argument for strings similar to `unique`'s where one could specify whether or not to sort by casing, as...
I cannot pass a variable from a child template to it's parent. I have this in `child`: ``` {% extends "parent" %} {% set foo = "bar" %} {% block...
Hello @Keats , You seem to be missing the git **tag**s for the latest releases.
I use tera in an actix-web project and wanted to expose the [`url_for` method](https://docs.rs/actix-web/3.3.2/actix_web/web/struct.HttpRequest.html#method.url_for) of `HttpRequest` to the template. The template engine is initialised globally, and so are its registered...