ckirkendall / kioo

Enlive/Enfocus style templating for Facebook's React and Om in ClojureScript.
Eclipse Public License 1.0
404 stars 39 forks source link

Ordering Inside Do-> #36

Closed dpetrovics closed 8 years ago

dpetrovics commented 9 years ago

Not sure if I'm missing something here, but I wanted to report some behavior that seems strange.

The following snippet performs as expected:

(defsnippet home-page "public/assets/html/home.html" [:div.home]
  [data]
  {[:div.home] (do-> (content "content")
                               (after "after")
                               (before "before"))})

However, if I reverse the order of the before and after transformations, it prints a seemingly random string "1659376468192659294528192", between the "content" and "after". I think I've seen Om do this in situations where you're not passing in a component where one is expected. Am I missing something here? Thanks for the library!