Crates.io | tera-text-filters |
lib.rs | tera-text-filters |
version | 1.0.0 |
source | src |
created_at | 2020-08-24 12:12:30.392242 |
updated_at | 2020-08-24 12:12:30.392242 |
description | Text transformation filters for the Tera template engine. |
homepage | |
repository | https://github.com/SirWindfield/tera-text-filters |
max_upload_size | |
id | 280080 |
size | 23,474 |
Text transformation filters for the Tera template engine.
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);
Licensed under either of
at your option.
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.