rocket_tera 
This crate adds support for using Tera with Rocket. It
automatically discovers templates, provides a Responder to render templates,
and automatically reloads templates when compiled in debug mode.
Usage
-
Write your template files in the configurable
template_dirdirectory (default:{rocket_root}/templates). -
Attach
Template::fairing()and return aTemplateusingTemplate::render(), supplying the path of the template file relative totemplate_dir:use ;
See the crate docs for full details.
Security
This crate is intended to be used with trusted templates that are shipped alongside your Rocket application. Using untrusted or user-provided templates is out of scope of this crate's threat model.
History
This was originally forked from the rocket_dyn_templates crate, which was maintained as part of Rocket upstream.