tera-text-filters

Crates.iotera-text-filters
lib.rstera-text-filters
version1.0.0
sourcesrc
created_at2020-08-24 12:12:30.392242
updated_at2020-08-24 12:12:30.392242
descriptionText transformation filters for the Tera template engine.
homepage
repositoryhttps://github.com/SirWindfield/tera-text-filters
max_upload_size
id280080
size23,474
mainrs (mainrs)

documentation

README

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.

Commit count: 3

cargo fmt