pub trait DefaultTemplate: Template {
const RAW_TEMPLATE: &'static str;
fn render_default(&self, options: &Options) -> Result<Serialized> { ... }
}Expand description
Associated Constants
const RAW_TEMPLATE: &'static str
const RAW_TEMPLATE: &'static str
The raw static string with the templates contents.
When using #[default_template("myfile.js")] it will be generated as
include_str!("myfile.js").
Provided methods
fn render_default(&self, options: &Options) -> Result<Serialized>
fn render_default(&self, options: &Options) -> Result<Serialized>
Render the serialized template data into the default template.
If this method is implemented manually, it still needs to use Template::render to be
serialized correctly.