Download Latest Version v4.5.2 source code.tar.gz (2.7 MB)
Email in envelope

Get an email when there's a new version of happyx

Home / v1.8.1
Name Modified Size InfoDownloads / 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
Source: README.md, updated 2023-07-03