html_tools

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

Pure Nim score 30/100 · tests present · docs generated

Summary

Latest Version 0.2.0
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-08-26 06:47

Authors

  • Juan Carlos

Installation

nimble install html_tools
choosenim install html_tools
git clone https://github.com/juancarlospaco/nim-html-tools

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
html_tools - - - - - - -

Dependencies

Package Version Optional
nim >= 0.20.2 No
contra - No

Source

Repository https://github.com/juancarlospaco/nim-html-tools
Homepage https://github.com/juancarlospaco/nim-html-tools
Documentation View Documentation
Registry Source nimble_official

README

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