Comments (8)
I've read briefly the code and I have my answers. To be able to use hicada in an isomorphic setup, I need to write my own html
macro that emits the hiccup code as is in CLJ and does its job normally for CLJS. Which means my own macro should probably use something like macrovich to detect for which environment I want to compile the code.
from hicada.
Or would you be interested into this feature for hicada itself ? (Sorry to reopen).
from hicada.
Any non-breaking features are welcome :)
from hicada.
Ok, I've been given more thought about the question. Currently one has to use rum or something like this to do the actual rendering to HTML on the JVM. I first thought that wasn't the case, in the sense that hicada was standalone.
You seem open to the feature, but there's no test coverage to know whether I break something if I try to implement it. What would be a good strategy?
from hicada.
Rum happens to have a good strategy: it compares its own server side rendering with React.js itself on node and does isomorphic rendering to allow manual checking of the result in the browser. All with the same code.
Should hicada contains such a test suite? Something else?
from hicada.
I don't think I'm interested in implementing (and maintaining) an HTML renderer. The rum one works great. I also think this is possible with the server-render?
option, no?
from hicada.
from hicada.
I will close the issue but the server rendering will be considered probably in a near future.
from hicada.
Related Issues (13)
- Hicada to HTML String ? HOT 2
- Optional props for :> HOT 1
- Preserve clojurescript objects in props HOT 3
- Incorrect result on compiling `cond` with more than 4 conditions. HOT 2
- Server side rendering HOT 1
- Deploy a new version (> 0.1.8) HOT 1
- Attrs type hint HOT 10
- The 0.1.9 causes regression HOT 5
- trouble compiling project HOT 3
- Should `compile-html` walk everything? HOT 1
- Use with Rum? HOT 4
- Private discussion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hicada.