Skip to content

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

License

Notifications You must be signed in to change notification settings

juancarlospaco/nim-html-tools

Repository files navigation

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

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages