The canoncial server-side Elm example is the take-home,
https://github.com/noredink/take-home, written by me. AFAIK it is
still the only full stack-Elm application. It also lists good reasons
as to not take that approach and why it should be avoided at all
costs.

If you want to render code on the server side, you can use
https://github.com/eeue56/elm-server-side-renderer/ which is also
written by me. While it's labelled a work in progress, we use it for
our production tests at NoRedInk and have been doing so for a while
now.

You'll need to set up a port to pull the generated string out, but
it's trivial bit of work to do with the elm-server-side-renderer
project. Just take a look at how something like elm-test pulls values
out through a port.

On Wed, Nov 23, 2016 at 9:29 PM, 'Rupert Smith' via Elm Discuss
<elm-discuss@googlegroups.com> wrote:
> https://github.com/ElmCast/elm-node
>
> Any others?
>
> Also, are they very tied to nodejs? I'm wondering if the javascript
> interpreter that comes with Java could run it?
>
> I'm looking for ways I could render Html views using Elm, but in such a way
> that some of the view code can be shared between browser and server side.
> Generally content to render views from will be in Java, so it would make
> things easier if I could run Elm in a JVM. Hope this is not too crazy.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to