dekao
HTML templating language
Summary
| Latest Version | 0.0.4 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-08-30 07:10 |
Tags
Authors
- ajusa
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 | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 1.2.2 | No |
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.