Created
May 3, 2011 08:22
-
-
Save twfarland/953002 to your computer and use it in GitHub Desktop.
Don template in Sibilant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)]]]]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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