Crate html_compile
source ·Expand description
§html_compile
A template engine for generating HTML strings within Rust for use with static websites. HTML strings can be generated by inputting a concise syntax into provided macros or, alternatively, from Rust structs. This engine prioritizes speed and should only be used with trusted HTML data.
Modules§
Macros§
- Builds a Rust struct that represents an HTML component.
- Generates an HTML string using the inputted syntax
- Takes a String and swaps the placeholder text
{COMPONENT}
for the HTML String built using the provided syntax