Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save twfarland/953002 to your computer and use it in GitHub Desktop.
Save twfarland/953002 to your computer and use it in GitHub Desktop.
Don template in Sibilant
(defun blogTemplate (d)
[["!doctype html"]
['html
['head
['meta {charset 'utf-8}]
['title d.title]]
['body
['section
['h1 d.title]
['div {class 'articles} (Don.mapRender articleTemplate d.articles)]]]]])
(defun blogTemplate ()
[["!doctype html"]
['html
['head
['meta {charset 'utf-8}]
['title this.title]]
['body
['section
['h1 this.title]
['div {class 'articles} (Don.mapRender articleTemplate this.articles)]]]]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment