Rust Compiled Templates with static-file handling
Rust Compiled Templates, also known as ructe, is a HTML template system that aims to make writing templates in Rust as easy as writing HTML. It draws inspiration from the scala template system used in play 2 and plain old jsp. The main design criteria of ructe is to catch as many errors as possible at compile-time, include all the template code in the compiled binary to avoid reading template files at runtime, have fast running times, and provide an expressive template language that can be used for any text-like format, not just HTML. Templates written with ructe can be transpiled to Rust functions that can be compiled and called from Rust code.
Display trait to be outputted in the templates.Rust Compiled Templates (ructe) is a HTML template system for Rust that aims to provide an easy and expressive way to write templates for any text-like format, not just HTML. It focuses on catching errors at compile-time, including all the template code in the compiled binary, and providing fast running times. With ructe, templates can be transpiled to Rust functions that can be compiled and called from Rust code. By default, ructe escapes all values in the templates, but also provides a way to output preformatted HTML. It is currently in an early stage of development but is functional and includes documentation and examples for various web frameworks.