Crate templr

source ·

Re-exports§

Modules§

Macros§

  • This renders the attributes into a PrerenderedAttrs struct. This can later be used for attributes instantiation.
  • The templ! macro compiles down your template to an FnTemplate closure. It uses HTML like syntax to write templates, except:
  • Return type for functions that return templ! { ... }. This takes a lifetime (defaults to 'static) and a context type (defaults to ()).

Structs§

Traits§

Functions§

Type Aliases§

Derive Macros§

  • 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!).