Docs.rs
templr_macros-0.2.2
templr_macros 0.2.2
Permalink
Docs.rs crate page
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
PizzasBear
Dependencies
askama_escape ^0.10
normal
proc-macro2 ^1.0
normal
quote ^1.0
normal
syn ^2.0
normal
templr_parser ^0.2.1
normal
Versions
75%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
templr_
macros
0.2.2
All Items
Crate Items
Macros
Derive Macros
Crate
templr_macros
Copy item path
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!
).