Clone in a terminal:
Commit 9733270
Johan Mattsson - 2026-03-03T21:06:21+00:00
9733270ac3b3289c59af0e410c465c204974a14djohan.mattsson.m@gmail.com

More documentation

Changed files (1)

Diff

diff --git a/src/lib.rs b/src/lib.rsindex 4bf453b..8e5c729 100644--- a/src/lib.rs+++ b/src/lib.rs@@ -44,6 +44,13 @@ use proc_macro_error::proc_macro_error; ///     </div> /// }}; /// ```+///+/// ## Variables and Functions in the Markup+///+/// - `$variable_name` -- insert content of the variable and escape tags.+/// - `$(get_value())` -- insert string from the get_value function and escape tags.+/// - `$(x + 2)` -- compute x + 2 and add the content to the html string, escaped if needed.+/// - `<include some_other_component() />` insert trusted HTML content from the function some_other_component, html tags are allowed. #[proc_macro_error] #[proc_macro] pub fn html(input: TokenStream) -> TokenStream {

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112