askama icon indicating copy to clipboard operation
askama copied to clipboard

Type-safe, compiled Jinja-like templates for Rust

Results 175 askama issues
Sort by recently updated
recently updated
newest added

Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version. Changelog Sourced from criterion's changelog. [0.4.0] - 2022-09-10 Removed The Criterion::can_plot function has been removed. The Criterion::bench_function_over_inputs function has been...

dependencies

I cloned the repo and then run this test: https://github.com/djc/askama/blob/5748c357d435b24848d1571df010d777859fede9/askama_axum/tests/basic.rs This works, then I modify basic.rs to (`String` instead of `&str`): ``` use askama::Template; use axum::{ body::Body, http::{Request, StatusCode}, routing::get,...

Draft: May not be worth merging until axum-core 0.3.0 is released.

Is there an easy way to coerce an Optional to be `""` if it's None? That would really make prototyping a lot faster than having to write out Match sequences....

This was proposed by @djc to fix #708 - but just blindly taking references does not seem to work

Being relatively new to rust, as I am sure others are, I am struggling to have a struct that derives 'Template' contain a field of type 'Anything that implements Template'....

Consider the following working templte: ``` {% match team.subscription_state %} {% when SubscriptionState::New %} New! {% when SubscriptionState::Active %} Active! {% endmatch %} ``` Originally I had mistakenly omitted the...

Just updated askama_derive to 0.12.4 from 0.12.2 and askama_parser to 0.2.0 from 0.1.1 and now my project fails to compile. ``` error[E0277]: the trait bound `&std::string::String: From` is not satisfied...

Reverts djc/askama#922 As discussed in https://github.com/djc/askama/pull/937, this was actually a pretty bad idea to do this. We'll need to discuss about potential ways to go around this limit but in...

I'm trying to make a workspace that in two different places of dependency tree uses `askama` One imports only `askama`, the other one `askama_axum`. The one that only imports askama...