[][src]Crate yarte_derive

yarte_derive is the core of the crate, and where the procedural macro derive(Tempalte) is implemented. yarte_derive will have as input a template file and the definition of the struct that goes together. With this, Yarte will parse the file and the struct to create an ast, and will provide the user's struct the functionality of fmt for the template. Derivation is implements fmt::Display, superTrait of Template, and if activated, actix_web::Responder will be implemented on the user's struct. Template is defined in the main yarte crate and implements fmt in functions like call, call_into_fmt, call_into_io, mime, and size_hint.

Derive Macros

Template