#template #white-space #render #validation

bin+lib trimmer

A whitespace- and memory-friendly template engine

10 releases

Uses old Rust 2015

0.3.6 Jan 29, 2018
0.3.5 Nov 18, 2017
0.3.3 Sep 28, 2017
0.3.0 Aug 9, 2017
0.1.1 Aug 2, 2017

#362 in Template engine

Download history 15/week @ 2024-02-19 18/week @ 2024-02-26 8/week @ 2024-03-04 13/week @ 2024-03-11 8/week @ 2024-03-18

52 downloads per month
Used in 2 crates

MIT/Apache

205KB
5.5K SLoC

Trimmer

:Status: Beta

Reference | API Docs | Github | Crate

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 rather than escaping

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.


lib.rs:

Trimmer: A yet another text template engine

User Guide | Github | Crate

Dependencies

~4.5MB
~98K SLoC