RustAPI View
Server-side rendering for RustAPI using Tera.
Create dynamic HTML web applications with the powerful Jinja2-like syntax of Tera.
Features
- Type-Safe Context: Pass Rust structs directly to templates.
- Auto-Reload: Templates reload automatically in debug modeāno restart required.
- Includes & Inheritance: Master pages, blocks, and macros supported.
Example
src/main.rs
use ;
async
templates/index.html
{{ title }}
{% for post in posts %}
{{ post }}
{% endfor %}