Skip to content

calcit-lang/stir-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stir Template

for Calcit

Based on old works on:

Usages

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"

Workflow

https://github.com/calcit-lang/calcit-workflow

License

MIT