#filter #template #plf

plf-contrib

Additional filters, functions and tests for the Plf template engine

1 unstable release

Uses new Rust 2024

new 0.1.0 May 11, 2026

#442 in Template engine

MIT license

42KB
926 lines

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

~1–3.5MB
~61K SLoC