Jennifer Academy

Code: Your own small blog with Jennifer

Code for "Your own small blog with Jennifer"

All programs run with a plain Jennifer 0.26.0 (jennifer run), from inside this code/ folder. No decks, servers or settings are needed.

FileSlidesRun
build.jthe whole talk: reads site.toml, events.toml, posts/*.md and templates/*.tmpl, writes the site to public/jennifer run build.j
serve.j"Previewing with a tiny web server": serves public/ at http://127.0.0.1:8080/ until Ctrl-Cjennifer run serve.j (after build.j)
markdown-demo.j"Markdown becomes HTML"jennifer run markdown-demo.j
escape-demo.j"Templates do not escape for you"jennifer run escape-demo.j

Data files:

  • site.toml: the blog's title, address and author (placeholder values).
  • events.toml: the events; only those still in the future are written to the home page and public/events.ics.
  • posts/: one Markdown file per post, named YYYY-MM-DD-slug.md, with TOML front matter between two +++ lines.
  • templates/: layout.tmpl (with the style sheet), index.tmpl and post.tmpl, tengine templates.

public/ is build output: delete it whenever you like, build.j writes it again.

FileSize
LICENSE899 Braw
README.md1.1 KiBraw
build.j5.8 KiBraw
escape-demo.j475 Braw
events.toml298 Braw
markdown-demo.j202 Braw
posts/2026-11-02-hello-blog.md325 Braw
posts/2026-11-09-tea-and-templates.md361 Braw
posts/2026-11-16-feeds.md332 Braw
serve.j392 Braw
site.toml137 Braw
templates/index.tmpl311 Braw
templates/layout.tmpl1.0 KiBraw
templates/post.tmpl188 Braw