Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
Raw HTML source code.tar.gz | 2023-07-03 | 332.5 kB | |
Raw HTML source code.zip | 2023-07-03 | 367.8 kB | |
Raw HTML.tar.gz | 2023-07-03 | 332.5 kB | |
Raw HTML.zip | 2023-07-03 | 367.8 kB | |
README.md | 2023-07-03 | 645 Bytes | |
Totals: 5 Items | 1.4 MB | 0 |
Meet: Raw HTML 🎉
Usage 👨🔬
:::nim
var myHtml = buildHtml:
tDiv:
"Here is just text"
rawHtml: """
<div>
Here is raw HTML
</div>
"""
CLI ✨
You can easily translate your HTML code into buildHtml
macro with HappyX CLI!
Just run command:
:::bash
hpx html2tag source.html
source.html
:::html
<div>
<a href="/some">Hello</a><br>
<hr>
</div>
source.nim
:::nim
import happyx
var html = buildHtml:
tDiv:
a(href = "/some"):
Hello
br
hr