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 Unknown
License MIT
CI Status Passing
Downloads 0
Last Indexed 2026-07-21 05:24

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 - - - - - - -

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