Registry / web-framework / tera
library1.20.1rscratesunverified

A template engine for Rust based on Jinja2 and Django templates.

# Cargo.toml [dependencies] tera = "1.20.1"
INSTALL
IMPORT
SIG · TERA
T
tera
web-frameworkrustv1.20.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Tera
✓ use tera::Tera;

Initialize Tera with a glob pattern and render a template.

use tera::Tera; let tera = Tera::new("templates/**/*").unwrap(); let result = tera.render("index.html", &tera::Context::new()).unwrap(); println!("{}", result);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.20.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
3
Resources
tera — cargo add tera · libregistry