Updates for askama
This commit is contained in:
@@ -34,6 +34,7 @@ const TEXT_PLAIN: &'static str = "text/plain";
|
||||
// Inline Askama filters module for template use
|
||||
mod filters {
|
||||
// Usage: {{ items|batch(7) }}
|
||||
#[askama::filter_fn]
|
||||
pub fn batch<T: Clone>(
|
||||
items: &[T],
|
||||
_: &dyn ::askama::Values,
|
||||
|
||||
Reference in New Issue
Block a user