Function askama_shared::build_template [] [src]

pub fn build_template(ast: &DeriveInput) -> String

Takes a syn::DeriveInput and generates source code for it

Reads the metadata from the template() attribute to get the template metadata, then fetches the source from the filesystem. The source is parsed, and the parse tree is fed to the code generator. Will print the parse tree and/or generated source according to the print key's value as passed to the template() attribute.