tokarax

Converts HTML to Karax representation

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:25

Installation

nimble install tokarax
choosenim install tokarax
git clone https://github.com/thisago/tokarax

OS Compatibility

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

Source

Repository https://github.com/thisago/tokarax
Homepage https://github.com/thisago/tokarax
Registry Source nimble_official

README

tokarax

Converts HTML to Karax representation

Usage

Lib

import pkg/tokarax
echo toKarax parseHtml """
<h1 id="title">Hello world</h1>
<button class="btn btn-danger">Click me</button>
<!-- I am a comment -->
<!-- ]#
Multiline
comment
#[ -->
"""

CLI

Example

$ tokarax -i index.html -o main.nim

Help

$ tokarax --help
Usage:
  main [required&optional-params]
Converts HTML to Karax representation
Options:
  -h, --help                        print this cligen-erated help
  --help-syntax                     advanced: prepend,plurals,..
  -i=, --input=   string  REQUIRED  Set input
  -o=, --output=  string  ""        Set output; Leave it blank to print in stdout
  -j, --justBody  bool    true      Use this to parse all tags (not just `body`)

TODO

  • [ ] Add tests
  • [ ] Create an vscode extension with this

License

GPL-3