GithubHelp home page GithubHelp logo

Isomorphic rendering? about hicada HOT 8 CLOSED

rauhs avatar rauhs commented on July 19, 2024
Isomorphic rendering?

from hicada.

Comments (8)

DjebbZ avatar DjebbZ commented on July 19, 2024

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.

DjebbZ avatar DjebbZ commented on July 19, 2024

Or would you be interested into this feature for hicada itself ? (Sorry to reopen).

from hicada.

rauhs avatar rauhs commented on July 19, 2024

Any non-breaking features are welcome :)

from hicada.

DjebbZ avatar DjebbZ commented on July 19, 2024

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.

DjebbZ avatar DjebbZ commented on July 19, 2024

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.

rauhs avatar rauhs commented on July 19, 2024

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.

DjebbZ avatar DjebbZ commented on July 19, 2024

from hicada.

niwinz avatar niwinz commented on July 19, 2024

I will close the issue but the server rendering will be considered probably in a near future.

from hicada.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.