~subsetpark/bagatto

ref: 4fc04b3afee0f496217a3243a75f75d51d5b64f1 bagatto/demo/mmd/index.janet -rw-r--r-- 307 bytes
4fc04b3a — Zach Smith Add render some 6 months ago
                                                                                
1
2
3
4
5
6
7
(bagatto/set-output-dir! "site")

(def data {:pages {:src (bagatto/slurp-* "pages/*.md")
                   :attrs bagatto/parse-mmarkdown}})
(def site {:pages {:each :pages
                   :dest (bagatto/%p "pages" '%i "title" '% ".html")
                   :out (bagatto/renderer "templates/page") }})