tera icon indicating copy to clipboard operation
tera copied to clipboard

A template engine for Rust based on Jinja2/Django

Results 198 tera issues
Sort by recently updated
recently updated
newest added

Given the following example (where `width` is supplied externally): ```twig {% set respSizes = [600, 900, 1200, 1500] %} {% for size in respSizes %} {% if size

Here's a bug I found when playing with Tera in `wasm32-wasi` target. I have this simple setup: ``` site/ - templates/ - base.html ``` I mount it to the WASM+WASI...

It would be nice if you were able to use inline if-expressions. It would greatly condense the amount of space used by similar if expressions. Example: ```html {% if morning...

enhancement

How do I conditionally add HTML if a specified block exists?

# Bug Report I got the following error message: ``` $ zola serve Building site... -> Creating 0 pages (0 orphan), 1 sections, and processing 0 images Error: Failed to...

For next major version

Macro definition doesn't work in simple template, but works if template extends other template. Importing the macro from a separate template also works. # This works: ```rust use tera::{Context, Tera};...

In Tera 0.11 an expression like this was possibe: ``` {%- set tags = (query.tags ~ ' ' ~ tags) | trim -%} ``` In Tera 1, this gives an...

enhancement

Hi, there. ```rust use std::error::Error; use tera::{Context, Tera}; type Result = std::result::Result; fn main() -> Result { let context = { let mut context = Context::new(); context.insert("name", ""); context.insert("desc", "");...

Would it be possible to make `globwalk` an optional feature? I'm using [templates from strings](https://tera.netlify.com/docs/#loading-templates-from-strings) in a wasm app and it works great! I'd like to trim the dependencies and...

enhancement
For next major version

Hi, Jinja has this nice support for formatting like: ```HTML+Django {{ '0x%0X' % payload.id }} ``` It would be nice to have something like this in tera, specially for integers...