#tera #tera-templates #filter #text #transformation #camel-case

tera-text-filters

Text transformation filters for the Tera template engine

1 stable release

1.0.0 Aug 24, 2020

#573 in Template engine

Download history 14/week @ 2023-11-20 8/week @ 2023-11-27 4/week @ 2023-12-04 9/week @ 2023-12-11 18/week @ 2023-12-18 7/week @ 2023-12-25 5/week @ 2024-01-01 14/week @ 2024-01-08 16/week @ 2024-01-15 25/week @ 2024-01-22 5/week @ 2024-02-05 19/week @ 2024-02-12 24/week @ 2024-02-19 53/week @ 2024-02-26 36/week @ 2024-03-04

133 downloads per month
Used in framy

MIT/Apache

9KB

tera-text-filters

crates.io crates.io Documentation

Text transformation filters for the Tera template engine.

Usage

use tera::Tera;
use tera_text_filters::camel_case;

let mut tera = Tera::default();
tera.register_filter("camel_case", camel_case);

Alternatively, you can register all filters at once:

use tera::Tera;
use tera_text_filters::register_all;

let mut tera = Tera::default();
register_all(&mut tera);

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~8–10MB
~180K SLoC