html2karax
Converts html to karax.
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install html2karax
choosenim install html2karax
git clone https://github.com/nim-lang-cn/html2karax
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| html2karax | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/nim-lang-cn/html2karax |
|---|---|
| Homepage | https://github.com/nim-lang-cn/html2karax |
| Registry Source | nimble_official |
README
html2karax
Converts static html to Karax single page application or server sider rendering.
Installation
nimble install html2karax
Usage
html2karax yourHtmlFile.html
yourHtmlFile.html
<figure role="img" aria-labelledby="cow-caption">
<pre>
___________________________
< I'm an expert in my field. >
---------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
</pre>
<figcaption id="cow-caption">
A cow saying, "I'm an expert in my field." The cow is illustrated using <em>preformatted</em> text characters.
</figcaption>
</figure>
yourHtmlFile.nim
include karax / prelude
proc createDom(): VNode =
result = buildHtml:
figure(role = "img", aria-labelledby = "cow-caption"):
pre:
text """
___________________________
< I'm an expert in my field. >
---------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
"""
figcaption(id = "cow-caption"):
text "A cow saying, \"I'm an expert in my field.\" The cow is illustrated using "
em:
text "preformatted"
text " text characters."
setRenderer createDom