-
Notifications
You must be signed in to change notification settings - Fork 177
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
Clojurescript support #127
Comments
I would be interested, but ClojureScript might not be easy to get working. I think the first step might be to splitting up the repository, since returning strings doesn't make sense in ClojureScript, not when most of the time you want a DOM element instead. You might even want a React element. So moving the utility functions out is step one, and work to that end has been started in the 2.0 branch. Also there are a few parts of your code that are not really idiomatic anymore, like the |
You are right, I renamed the "_macros" namespaces |
Having a ClojureScript port of hiccup (returning string) still makes sense as it could be used with nodejs. It can also be useful browser side: for simple static document going full virtual dom is not necessary. Is this something you would consider? I can definitively help here. |
Just throwing in my 2 cents that a ClojureScript hiccup returning strings would make sense, and a separate fn/macro to return raw doms would also make sense. Even more awesome if they can be handled with the hiccup 2 goodness. For reference, |
Adding one more interested voice here, I feel that working with |
Anything new here? Another interested voice. :) |
I woud be interested as well, I now use https://github.com/teropa/hiccups to get the html as strings and turn them into nodes with closure, but would much rather user the same library client and serversite |
It appears the 2.0 branch hasn't received commits in quite some time, is it abandoned and are there still plans to want to support cljs? |
It's not abandoned; the alpha works fine, but I haven't worked out a good way of converting all the utility functions over, or even if it's useful to do so, which is why any further work has been delayed. It may be worth releasing the alpha as a full release, and leaving the question of the utility functions for 2.1. As for cljs, I don't have any plans to add it myself. |
Hi,
I made a cljc version of hiccup: https://github.com/eweng/hiccup
Would you be interested by a pull request? In such a case I would wait for #122 to be merged, rebase on it and submit my changes.
The text was updated successfully, but these errors were encountered: