Template Engines
Here I’m investigating Rust Template Engines.
1. Handlebars
Section titled “1. Handlebars”Simple, optimized, not as featureful as others. Port of the js library. Most downloads.
2. Tera (my pick)
Section titled “2. Tera (my pick)”Most features. It isn’t a port, it’s autonomous. Second in downloads behind handlebars.
Good Documentation
Examples:
- math
- statements (for-loops, if…)
- comparisons
- comments
- filters (to manipulate data from inside the template)
I decided to go with this one because I need a template system as expressive as possible.
3. Liquid
Section titled “3. Liquid”Less production ready, ruby port.