#tera #traits #views #macro-derive #partial #reserved #linked

teratraits

Reserved name for Tera traits: traits and derive macros for Tera views and partials. Note: this project is not linked with Tera

1 unstable release

0.0.0 Apr 2, 2022

#17 in #views

MIT/Apache

2KB

Tera traits

Set of Rust traits and derive macros to represent Tera views and partials.

The goal of these traits is to let the user define a struct for each view or partial, implementing the appropriate trait, so that the struct provides a type-safe interface which can be unit tested to match the data required by the Tera template by simply rendering it.

This crate has initially been written in the context of the Rust on Waves project (see the draft).

To understand how this crate can be useful, you can do one of the following things:

No runtime deps