dekao
Write HTML templates easily
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:23 |
Tags
Installation
nimble install dekao
choosenim install dekao
git clone https://github.com/ajusa/dekao
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| dekao | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/ajusa/dekao |
|---|---|
| Homepage | https://github.com/ajusa/dekao |
| Registry Source | nimble_official |
README
dekao
A simple HTML templating language for Nim. Forked from https://github.com/treeform/taggy originally.
Example
import dekao
let htmlText = render:
html:
head:
meta: charset "utf-8"; name "viewport"; content "width=device-width, initial-scale=1"
link: rel "stylesheet"; href "https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css"
script: src "https://unpkg.com/htmx.org@1.9.2/dist/htmx.js"
title: say "My website"
body:
main ".container":
h1: say "My heading"
Also comes with wrappers predefined for HTMX and petite-vue. See https://github.com/ajusa/dekao/tree/master/src/dekao for the various attribute declarations.