[−][src]Crate wearte_derive
wearte_derive
is the core of the crate, and where the procedural macro derive(Tempalte)
is
implemented. wearte_derive
will have as input a template file and the definition of the struct
that goes together. With this, wearte 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 wearte crate and implements fmt
in functions like
call
, call_into_fmt
, call_into_io
, mime
, and size_hint
.
Derive Macros
Template |