nim-html-tools icon indicating copy to clipboard operation
nim-html-tools copied to clipboard

HTML5 Tools for Nim, all Templates, No CSS, No Libs, No JS Framework

Nim-HTML-Tools

  • HTML5 Tools for Nim, all Templates, No CSS, No Libs, No JS Framework, No CSS Framework.

Features

HTML Notification bubble

HTML Input File Format Validation

HTML Input Mail Validation

Use

import html_tools

echo inputEmailHtml(value="[email protected]", name="myMail", class="is-rounded", id="myMail", placeholder="Email", required=true)
echo inputNumberHtml(value="42", name="myNumber", class="is-rounded", id="myNumber", placeholder="Integer", required=true)
echo inputFileHtml(name="myImage", class="is-rounded", id="myImage", required=true)
echo imgLazyLoadHtml(src="myImage.jpg", class="is-rounded", id="lazyAsHell")
echo "<button onClick='" & notifyHtml("This is a Notification") & "'>Notification</button>"
echo rst2html("**Hello** *World*")
echo minifyHtml("     <p>some</p>                                                  <b>HTML</b>     ") # Minifies when -d:release

(Not all parameters are required, on the example all parameters are used only for illustrative purposes)

Install

  • nimble install html_tools