Skip to content

Instantly share code, notes, and snippets.

@bobo
Created September 22, 2010 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobo/592526 to your computer and use it in GitHub Desktop.
Save bobo/592526 to your computer and use it in GitHub Desktop.
(html/defsnippet log-model "bobot/log.html" [:tr#row] [log]
(html/content log))
(html/deftemplate index "bobot/log.html" [ctxt]
[:table#log] (html/content (map #(log-model %) ctxt)))
@kotarak
Copy link

kotarak commented Sep 22, 2010

(html/defsnippet log-model
  "bobot/log.html"
  [:table#log]
  [ctxt]
  [:tr#row] (html/clone-for [log ctxt]
              [:td] (html/content log)))

(html/deftemplate index
  "bobot/log.html"
  [ctxt]
  [:table#log] (html/content (log-model ctxt)))

@bobo
Copy link
Author

bobo commented Sep 23, 2010

awesome, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment