Edo
A super simple templating library for Rust.
Examples
You can use a simple static replacement.
use Edo;
let mut template = new.unwrap;
template.register_static;
let output = template.render;
assert_eq!;
You can also use a handler function to calculate the value.
use Edo;
let mut template = new.unwrap;
template.register_handler;
let output = template.render;
assert_eq!;
Your handlers can also take arguments (As a Vec<str>
).
use Edo;
let mut template = new.unwrap;
template.register_handler;
let output = template.render;
assert_eq!;
License
This code is distributed under the MIT license