Skip to content

Commit

Permalink
Merge pull request #7 from ArthaTi/refactor
Browse files Browse the repository at this point in the history
Refactor elemi
  • Loading branch information
Artha authored Nov 30, 2021
2 parents 51c3319 + 3615ba5 commit f1e7516
Show file tree
Hide file tree
Showing 9 changed files with 1,099 additions and 816 deletions.
14 changes: 12 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,19 @@ auto document = Element.HTMLDoctype ~ elem!"html"(
),
elem!"body"(
attr("class") = ["home", "logged-in"],
// All input is sanitized.
"<Welcome to my website!>"
elem!"main"(
elem!"img"(
attr("src") = "/logo.png",
attr("alt") = "Website logo"
),
// All input is sanitized.
"<Welcome to my website!>"
)
),
Expand Down
Loading

0 comments on commit f1e7516

Please sign in to comment.