Commit 94b73f9
Test
Changed files (4)
modifiedREADME.mdaddedtest-fail-messages/includemissing/Cargo.lockaddedtest-fail-messages/includemissing/Cargo.tomladdedtest-fail-messages/includemissing/main.rs
Diff
@@ -142,10 +142,11 @@ let html = html! {{ ``` ## Macro Content as String-If you find yourself fighting with the compiler about special characters like en dash or single quotes, -try using a raw string literal as macro content.+If you find yourself fighting with the compiler about special characters like en dash or single +quotes, try using a raw string literal as macro content. ```rust+use kaja_html_macro::html; let test = String::from("bird"); let content = html! {{r#"new file mode 100644@@ -0,0 +1,95 @@+# This file is automatically @generated by Cargo.+# It is not intended for manual editing.+version = 4++[[package]]+name = "includemissing"+version = "0.1.0"+dependencies = [+ "kaja-html-macro",+]++[[package]]+name = "kaja-html-macro"+version = "1.0.2"+dependencies = [+ "proc-macro-error",+ "proc-macro2",+ "quote",+ "syn 2.0.111",+]++[[package]]+name = "proc-macro-error"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"+dependencies = [+ "proc-macro-error-attr",+ "proc-macro2",+ "quote",+ "syn 1.0.109",+ "version_check",+]++[[package]]+name = "proc-macro-error-attr"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"+dependencies = [+ "proc-macro2",+ "quote",+ "version_check",+]++[[package]]+name = "proc-macro2"+version = "1.0.103"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8"+dependencies = [+ "unicode-ident",+]++[[package]]+name = "quote"+version = "1.0.42"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f"+dependencies = [+ "proc-macro2",+]++[[package]]+name = "syn"+version = "1.0.109"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"+dependencies = [+ "proc-macro2",+ "unicode-ident",+]++[[package]]+name = "syn"+version = "2.0.111"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87"+dependencies = [+ "proc-macro2",+ "quote",+ "unicode-ident",+]++[[package]]+name = "unicode-ident"+version = "1.0.22"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"++[[package]]+name = "version_check"+version = "0.9.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"new file mode 100644@@ -0,0 +1,13 @@+[workspace]++[package]+name = "includemissing"+version = "0.1.0"+edition = "2024"++[dependencies]+kaja-html-macro = { path = "../../" }++[[bin]]+name = "includemissing"+path = "main.rs"new file mode 100644@@ -0,0 +1,18 @@+use kaja_html_macro::html;++// impl method does not exist++struct Main {}++impl Main {+ fn get_html(&self) {+ let content = html! {{+ <include self.get_outer_html() />+ }};+ }+}++fn main() {+ let main = Main {};+ main.get_html();+}