https://github.com/tailhook/trimmer
A whitespace and memory friendly template engine
https://github.com/tailhook/trimmer
rust template template-engine text text-templating
Last synced: 4 months ago
JSON representation
A whitespace and memory friendly template engine
- Host: GitHub
- URL: https://github.com/tailhook/trimmer
- Owner: tailhook
- License: other
- Created: 2016-11-26T00:49:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T00:14:02.000Z (about 8 years ago)
- Last Synced: 2025-10-05T01:44:18.858Z (4 months ago)
- Topics: rust, template, template-engine, text, text-templating
- Language: Rust
- Homepage: http://trimmer.readthedocs.io/
- Size: 387 KB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
Trimmer
=======
[Reference](https://trimmer.readthedocs.io/) |
[API Docs](https://docs.rs/trimmer/) |
[Github](https://github.com/tailhook/trimmer) |
[Crate](https://crates.io/crates/trimmer)
Yet another template engine for Rust. Features:
* Can produce better indented text than most template engines
* Can traverse Rust types without cloning them too much
* Can produce safe output by validating variable values
* Autoescaping is supported too, and decared in the template itself
License
=======
Licensed under either of
* Apache License, Version 2.0, (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license (./LICENSE-MIT or http://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.