2 unstable releases
Uses new Rust 2024
| new 0.2.0-alpha.1 | Feb 3, 2026 |
|---|---|
| 0.0.0 | Jun 13, 2024 |
#144 in Template engine
470KB
11K
SLoC
tera-contrib
Additional functions/filters/tests that require additional dependencies to work. See docs.rs for available things. Their docstring use the same name as their name in this library but you can insert them in your Tera instance with whatever name you want.
Features
Enable only what you need via Cargo features:
| Feature | Provides |
|---|---|
base64 |
b64_encode, b64_decode filters |
date |
now function, date filter, before/after tests |
filesize_format |
filesize_format filter |
format |
format filter (Rust-like formatting) |
json |
json_encode filter |
rand |
get_random function |
regex |
striptags, spaceless, regex_replace filters, matching test |
slug |
slug filter |
urlencode |
urlencode, urlencode_strict filters |
Dependencies
~0.2–2.5MB
~42K SLoC