tera
tera copied to clipboard
A template engine for Rust based on Jinja2/Django
This PR will fix #587 if merged. I'm very new to Rust programming, my apologies if I've done something wrong here. I've added a case_sensitive argument that when set to...
Hello, Launching a program that has `Tera::new("templates/**/*");` from the root directory on Linux causes globwalk [to try to walk all available paths](https://github.com/Gilnaa/globwalk/issues/29) to find paths that start with "templates", but...
It would be great to have a version of the `linebreaksbr` function where all of the input text is automatically escaped, but the ``s that are inserted aren't. I'm worried...
The `get_env` function could be a security risk, in the case that an app both: * Allows untrusted users to write templates * Uses environment variables to store secrets I...
Not sure if you aware of... https://github.com/chronotope/chrono/issues/602#issuecomment-940218484 https://github.com/kube-rs/kube-rs/issues/650
On top of https://github.com/Keats/tera/issues?q=is%3Aopen+is%3Aissue+label%3A%22For+next+major+version%22 ## Parser ### Operator precedence and expressions ✅ Parentheses should work everywhere and precedence should make sense. This is mostly already implemented in a new parser...
https://tera.netlify.app/docs/#functions the docs seem outdated. this isnt valid rust i dont think.
Would it be possible for this library to expose `tera::parser::parse_*`? Happy to make a PR. My usecase is to have pre-render macros, ex.: ``` {{ builtin::fetch_product(id="xxx", as="product") }} {#
I saw #543 that touches on needed apparatus, but I'd like to propose a feature request that goes a step farther... A set of localization functions used [Fluent](https://projectfluent.org/) should be...