Skip to content
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

Closed
tomconnors opened this issue Dec 19, 2013 · 8 comments
Closed

Hiccup style templating? #10

tomconnors opened this issue Dec 19, 2013 · 8 comments

Comments

@tomconnors
Copy link

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?

@swannodette
Copy link
Member

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.

@noprompt
Copy link

@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.

@swannodette
Copy link
Member

@noprompt @tomconnors I'll happily link to anything that provides a different templating flavor over the primitives.

@r0man
Copy link

r0man commented Dec 21, 2013

@tomconnors, @noprompt I started Hiccup style templating in a
branch over here:

https://github.com/r0man/om/blob/hiccup/test/om/hiccup_test.cljs

I basically took my ClojureScript Hiccup branch and
emit React forms instead of strings. I guess I put it into
another repository soon, because I think also it is not really "om",
but rather "React" specific.

@swannodette
Copy link
Member

@r0man this is great :)

@r0man
Copy link

r0man commented Dec 22, 2013

Ok, I got something working over here https://github.com/r0man/sablono

@tomconnors
Copy link
Author

Thanks for the responses on this issue, everyone. @r0man, I'm excited to try out your lib!

@karneaud
Copy link

+1 @r0man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants