Commit 5666609
Rename project to kaja-html-macro
Changed files (10)
modifiedREADME.mdmodifiedsrc/lib.rsmodifiedtest-fail-messages/include/main.rsmodifiedtest-fail-messages/start/main.rsmodifiedtest-fail-messages/structmember/main.rsmodifiedtest-fail-messages/variable/main.rsmodifiedtests/injection.rsmodifiedtests/interleaved.rsmodifiedtests/other.rsmodifiedtests/tag.rs
Diff
@@ -18,7 +18,7 @@ project. It expands at compile time into `String`. Inserts a variable and escapes HTML tags. ```rust-use htmlmacro::html;+use kaja_html_macro::html; let name = "<b>Johan</b>"; let html = html! {{@@ -44,7 +44,7 @@ You can evaluate arbitrary Rust expressions: Expressions are also automatically escaped. ```rust-use htmlmacro::html;+use kaja_html_macro::html; fn get_value() -> String { "42".to_string() }@@ -68,14 +68,14 @@ Markup emitted from Rust should be wrapped in `<markup>`. Use `<include />` to insert HTML content from another component. ```rust-use htmlmacro::html;+use kaja_html_macro::html; fn parent() -> String { let content = html! {{ <div> <include child_component_simple_loop() /> </div>- }}+ }}; content } @@ -22,7 +22,7 @@ use proc_macro_error::proc_macro_error; /// # Example for generating a String with HTML tags: /// /// ```rust-/// use htmlmacro::html;+/// use kaja_html_macro::html; /// /// fn get_header() -> String { /// let content = html! {{ <h1>Header</h1> }};@@ -1,4 +1,4 @@-use htmlmacro::html;+use kaja_html_macro::html; fn main() { // missing slash in include@@ -1,4 +1,4 @@-use htmlmacro::html;+use kaja_html_macro::html; fn main() { // macro start with double brackets: html! {{@@ -1,4 +1,4 @@-use htmlmacro::html;+use kaja_html_macro::html; struct Test { test_member: u64,@@ -1,4 +1,4 @@-use htmlmacro::html;+use kaja_html_macro::html; fn main() { // missing variable does_not_exist@@ -1,7 +1,7 @@ // Copyright (c) 2026 Johan Mattsson // License: MIT -use htmlmacro::html;+use kaja_html_macro::html; fn another_injection() -> String { return "<script>anothertest</script>".to_string();@@ -1,7 +1,7 @@ // Copyright (c) 2026 Johan Mattsson // License: MIT -use htmlmacro::html;+use kaja_html_macro::html; #[test] fn test_interleaved() {@@ -1,7 +1,7 @@ // Copyright (c) 2026 Johan Mattsson // License: MIT -use htmlmacro::html;+use kaja_html_macro::html; #[test] fn test_var() {@@ -1,7 +1,7 @@ // Copyright (c) 2026 Johan Mattsson // License: MIT -use htmlmacro::html;+use kaja_html_macro::html; struct Test { number: u32,