The canonical docs for Enfocus transforms are here:

http://ckirkendall.github.io/enfocus-site/#doc-trans

Simply use either ef/append or ef/after, depending on whether you want the new 
content added within the selected node or in a new node after it.

For example:

(em/deftemplate template1 "/templates/template1.html" []
                ["#heading1"] (ef/append "new text within heading1")
                ["#heading2"] (ef/after "new text after heading2"))

Additionally, the [] braces around selectors appear to be optional, so I 
usually omit them for simplicity.

Happy hacking,
  ~Gary

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to