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§

compile
types

Macros§

el
Builds a Rust struct that represents an HTML component.
html
Generates an HTML string using the inputted syntax
insert_html
Takes a String and swaps the placeholder text {COMPONENT} for the HTML String built using the provided syntax