-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hiccup style templating? #10
Comments
There are no plans to support Hiccup syntax at this time. Different people will want different things and that can be provided outside of Om itself. |
@tomconnors FWIW, with a little effort the template code in Pump is fairly easy to make work with this library. I personally have borrowed it and tweaked it to suit my needs. I decided to use a very simple approach dropping the CSS style tag names and few of the other conveniences. There is also the beginnings of a very naive macro version here but it needs a little bit of work and may not be worth the hassle. |
@noprompt @tomconnors I'll happily link to anything that provides a different templating flavor over the primitives. |
@tomconnors, @noprompt I started Hiccup style templating in a https://github.com/r0man/om/blob/hiccup/test/om/hiccup_test.cljs I basically took my ClojureScript Hiccup branch and |
@r0man this is great :) |
Ok, I got something working over here https://github.com/r0man/sablono |
Thanks for the responses on this issue, everyone. @r0man, I'm excited to try out your lib! |
+1 @r0man |
This is awesome.
Have you looked at Pump?
It allows using hiccup for the html, rather than calling, say (dom/div ...).
Would you consider taking a PR making that syntax available?
The text was updated successfully, but these errors were encountered: