Crate templr_macros

Source

Macros§

attrs
This renders the attributes into a PrerenderedAttrs struct. This can later be used for attributes instantiation.
templ
The templ! macro compiles down your template to an FnTemplate closure. It uses HTML like syntax to write templates, except:

Derive Macros§

Template
This derives the Template trait using all ToTemplate implementations. This implementation runs ToTemplate::to_template for every method of the Template trait, so that method should be very lightweight (like using templ!).