Clone in a terminal:
Commit c7aac36
Johan Mattsson - 2026-03-03T21:47:03+00:00
c7aac36b11ff2886bfd9df8ed47cad2dc8048276johan.mattsson.m@gmail.com

Prettier documentation

Changed files (2)

Diff

diff --git a/README.md b/README.mdindex 3b04883..b3b8431 100644--- a/README.md+++ b/README.md@@ -62,10 +62,10 @@ fn child_component_simple_loop() -> String {  ## 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.+- `$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.  ## Concept diff --git a/src/lib.rs b/src/lib.rsindex 5f683d5..a9080b0 100644--- a/src/lib.rs+++ b/src/lib.rs@@ -50,7 +50,7 @@ use proc_macro_error::proc_macro_error; /// - `$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.+/// - `<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