No description
Find a file
Arham Jain 64f392fc6a
Merge pull request #4 from bdjnk/master
support custom tags without selectors
2024-12-05 01:59:52 -05:00
examples Update dekao to be a fork of taggy 2023-05-17 22:06:37 -07:00
src support custom tags without selectors 2024-11-28 10:45:40 -06:00
tests Add support for void tags 2024-01-19 18:41:30 -08:00
dekao.nimble Bump version 2024-01-21 10:10:06 -08:00
LICENSE Update dekao to be a fork of taggy 2023-05-17 22:06:37 -07:00
README.md Add real readme 2024-01-14 22:24:00 -08:00

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.