for Calcit
Based on old works on:
- https://github.com/Respo/respo/blob/master/src/respo/render/html.cljs
- https://github.com/mvc-works/stir-template
- https://github.com/mvc-works/shell-page
Download source:
cd ~/.config/calcit/modules/
git clone https://github.com/calcit-lang/stir-template
Config dependency in calcit.cirru
(and then generate compact.cirru
)
:configs $ {}
:modules [] |stir-template/compact.cirru
Use in code:
ns demo.core $ :require
stir-template.core :refer $ <*> stir-html
stir-template.alias :refer $ make-page div a
make-page $ {}
:title "|title"
:styles $ [] |a.css
:scripts $ [] |b.css
:manifest "|manifest.json"
:content "|inner content"
make-html $ {}
:content $ div nil
span nil "|some text"
https://github.com/calcit-lang/calcit-workflow
MIT