Skip to content

Instantly share code, notes, and snippets.

@solussd
Created December 20, 2013 20:46
Show Gist options
  • Save solussd/8061286 to your computer and use it in GitHub Desktop.
Save solussd/8061286 to your computer and use it in GitHub Desktop.
(defn render-page [renderer [_ path] transmitter]
(let [parent (render/get-parent-id renderer path)
id (render/new-id! renderer path)
html (templates/add-template renderer path (:pedestal-sandbox-page templates))]
(dom/append! (dom/by-id parent) (html {:id id :message "" :blah "val"}))))
<div template="hello" field="id:id,ohno:blah">
<div field="content:message,name:blah" class="message">A Message</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment