mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-29 22:11:17 +00:00
14 lines
227 B
Rust
14 lines
227 B
Rust
use askama::Template;
|
|
|
|
#[derive(Template)]
|
|
#[template(
|
|
source = r#"{% for v in values %}{{ loop.cycle("r", "g", "b") }}{{ v }},{% endfor %}"#,
|
|
ext = "txt"
|
|
)]
|
|
struct ForCycle<'a> {
|
|
values: &'a [u8],
|
|
}
|
|
|
|
fn main() {
|
|
}
|