Simple templating language for HTML. Define components and rewrite parts of HTML with them.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update README

+31
+31
README.md
··· 1 1 # makup 2 2 3 3 Simple templating language for HTML. Define components and rewrite parts of HTML with them. 4 + 5 + ## Example 6 + 7 + Input: 8 + ```html 9 + <body> 10 + <h1>Hello!</h1> 11 + 12 + <p>Lorem lorem</p> 13 + 14 + <#hello>World</#hello> 15 + </body> 16 + ``` 17 + 18 + Parser: 19 + ```rs 20 + fn rewriter(input: &str, attrs: HashMap<&str, &str>) -> String { 21 + String::from(format!("<span>Hello {input}</span>")) 22 + } 23 + ``` 24 + 25 + Output: 26 + ```html 27 + <body> 28 + <h1>Hello!</h1> 29 + 30 + <p>Lorem lorem</p> 31 + 32 + <span>Hello World</span> 33 + </body> 34 + ```