https://github.com/mainrs/tera-text-filters-rs
Text transformation filters for the Tera template engine.
https://github.com/mainrs/tera-text-filters-rs
rust-library tera
Last synced: 2 months ago
JSON representation
Text transformation filters for the Tera template engine.
- Host: GitHub
- URL: https://github.com/mainrs/tera-text-filters-rs
- Owner: mainrs
- License: apache-2.0
- Created: 2020-08-24T10:32:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-24T12:13:50.000Z (over 4 years ago)
- Last Synced: 2024-10-12T14:34:48.762Z (7 months ago)
- Topics: rust-library, tera
- Language: Rust
- Homepage:
- Size: 742 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# tera-text-filters
[](https://crates.io/crates/tera-text-filters)
[](https://crates.io/crates/tera-text-filters)
[](https://docs.rs/tera-text-filters)> Text transformation filters for the Tera template engine.
## Usage
```rust
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:
```rust
use tera::Tera;
use tera_text_filters::register_all;let mut tera = Tera::default();
register_all(&mut tera);
```## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
https://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)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.