Hi,
I'm experimenting with templates and snippets and can't seem to get them to work reliably at all (with cljsbuild auto).
What seems to be happening is that I get a very simple template working and make a minor change (such as changing a selector) and I start getting a javascript error in the console. Changing the selector back to the original still gives me the error, then doing a cljsbuild clean and once and the app starts working again. It even works with the second selector.
The error I get is: TypeError: 'null' is not an object (evaluating 'child.nodeType')
It may be working better with cljsbuild once but I have not tested that throughly and would prefer to use auto if possible.
Does this sound familiar to anyone? Is a version issue or some kind of caching problem?
Thanks.
Julio
Just for completeness this are fragments of what I am doing and I'm using whitespace optimization.
; Works fine
(defn foo []
(ef/at js/document
["div"] (ef/content (template1 "WTF"))))
; change breaks
(defn foo []
(ef/at js/document
["#rz-demo"] (ef/content (template1 "WTF"))))
; after clean and build works