I would want to have the feature.html template be in the same folder as feature.rs.
It would be cool if you could do either one of:
A)
pub static FEATURE_TEMPLATE_HTML: &'static str = include_str!("feature.html");
#[derive(Template)]
#[template(source=FEATURE_TEMPLATE_HTML, ext = "html")]
struct featureTemplate<'a> {
name: &'a str,
}
B)
#[derive(Template)]
#[template(path="./feature.html")] // And maybe just path="feature.html" is using the toml dirs? Like how "import" works in nodejs
struct featureTemplate<'a> {
name: &'a str,
}
I would want to have the feature.html template be in the same folder as feature.rs.
It would be cool if you could do either one of:
A)
B)