Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juancarlospaco/nim-html-dsl
Nim HTML DSL
https://github.com/juancarlospaco/nim-html-dsl
bulma-css dsl html html5 nim nim-lang spectre-css
Last synced: 26 days ago
JSON representation
Nim HTML DSL
- Host: GitHub
- URL: https://github.com/juancarlospaco/nim-html-dsl
- Owner: juancarlospaco
- License: mit
- Created: 2018-10-20T10:48:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-14T07:43:30.000Z (over 4 years ago)
- Last Synced: 2024-09-30T01:41:43.573Z (about 1 month ago)
- Topics: bulma-css, dsl, html, html5, nim, nim-lang, spectre-css
- Language: Nim
- Size: 172 KB
- Stars: 64
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nim - html-dsl - Nim HTML DSL. (Web / Template Engines)
README
# Nim-HTML-DSL
- [Nim](https://nim-lang.org) HTML DSL, [Domain Specific Language](https://en.wikipedia.org/wiki/Domain-specific_language) for HTML embedded on Nim lang code (Not a template engine).
![HTML DSL](https://raw.githubusercontent.com/juancarlospaco/nim-html-dsl/master/temp.png "HTML for Cats")
# Use
```nim
import html_dslconst page = html:
heads:
title "Title"
meta(name="foo", content="bar")
bodys:
p "Powered by Nim Metaprogramming"
`
Example
Example
Powered by Nim Metaprogramming
NimExample
Example