Skip to content

Instantly share code, notes, and snippets.

@manythumbed
Created September 30, 2010 18:37
Show Gist options
  • Save manythumbed/605071 to your computer and use it in GitHub Desktop.
Save manythumbed/605071 to your computer and use it in GitHub Desktop.
(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