mirror of
https://github.com/askama-rs/askama.git
synced 2026-01-20 15:46:41 +00:00
19 lines
356 B
Rust
19 lines
356 B
Rust
use askama::Template;
|
|
|
|
#[derive(Template)]
|
|
#[template(
|
|
source = r#"{% for v in values %}{{ loop.cycle([]) }}{{ v }},{% endfor %}"#,
|
|
ext = "txt"
|
|
)]
|
|
struct ForCycleEmpty;
|
|
|
|
#[derive(Template)]
|
|
#[template(
|
|
source = r#"{% for v in values %}{{ loop.cycle::<u8>([]) }}{{ v }},{% endfor %}"#,
|
|
ext = "txt"
|
|
)]
|
|
struct ForCycleGenerics;
|
|
|
|
fn main() {
|
|
}
|