Inspired by ctemplate and et, Mustache is a framework-agnostic way to render logic-free views.
As ctemplates says, "It emphasizes separating logic from presentation: it is impossible to embed application logic in this template language."
rust-mustache is a rust implementation of Mustache.
The different Mustache tags are documented at mustache(5).
cargo install mustache
use std;
use mustache;
import std::io;
import std::map;
fn main() {
let ctx = map::new_str_hash();
ctx.insert("planet", mustache::str("world"));
let s = mustache::render_str("hello {{planet}}", ctx);
io::println(s);
}