Commit 9733270
More documentation
Changed files (1)
Diff
@@ -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 {