~subsetpark/bagatto

ref: dabc238c730f5eca7209fe3d4ad4edf3ee5fb91e bagatto/demo/mmd/index.janet -rw-r--r-- 306 bytes
dabc238c — Zach Smith Update docs to reflect template syntax 2 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")}})