Created
January 20, 2014 15:13
-
-
Save cgrand/8521651 to your computer and use it in GitHub Desktop.
This file contains 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
(dynamic-template some-html | |
:#id (content :foo)) | |
;; becomes (pseudo-code) | |
(-> js/document .-body ... #_(traversal to the node) (.appendChild (node (:foo model)))) | |
;; and the template content of #id is stripped out server-side |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is how I see the code playing out.
I am still struggling how something like append is going to work given if the template is called again the locs might be invalid. Our plan/traversal is static but the dom is changing with the app state. It feels like I have use a consistent input (static fragment) with app data to not have the state of the dom affect the transforms.