No description
Find a file
2019-07-23 23:47:03 -03:00
.github Create FUNDING.yml 2019-05-26 02:23:07 -03:00
src 0.20.2, Minor 2019-07-23 23:47:03 -03:00
.gitignore Initial commit 2019-03-18 16:38:19 -03:00
email-validation.png Add a Screenshot 2019-03-22 13:15:53 -03:00
fileformat-validate.png Add screenshot 2019-03-18 17:37:07 -03:00
html_tools.nimble 0.20.2, Minor 2019-07-23 23:45:54 -03:00
LICENSE Initial commit 2019-03-18 16:38:19 -03:00
README.md Add a Screenshot 2019-03-22 13:16:55 -03:00

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="user@company.com", 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