Created
September 30, 2010 18:37
-
-
Save manythumbed/605071 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(def table-template (html-resource "templates/table.html")) | |
(defsnippet header-cell table-template | |
[[:thead] [:tr first-child] [:th first-child]] | |
[value] | |
[:th] (content value)) | |
$ lein repl | |
"REPL started; server listening on localhost:4633." | |
user=> (use 'blog.table :reload-all) | |
nil | |
user=>(header-cell "X") | |
user=> ({:tag :th, :attrs nil, :content ("X")}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment