I've got Elm rendering Html server side. I also am able to map the content 
model I have been working with in Java into Elm using code generation to 
produce the encoders/decoders for it. So I can easily get the data into Elm 
now and rewrite my html templates in Elm. This is moving away from a set of 
handlebars templates. Writing the templates in Elm is not as easy as 
writing them in handlebars; its got a much stricter feel to it. A lot of 
Maybes in my model, as I assume a field is optional. In the handlebars 
templates one assumes fields you need are there, in Elm you have to handle 
Just and Nothing cases. So think I will go back to the meta-model and get 
"not null" working throughout the codegen, which will eliminate unnecessary 
Maybes. Good to find some time to think about this stuff on holiday in a 
more relaxed frame of mind and yes, I am still really enjoying Elm.

I've been reading "Business For Punks" by one of the BrewDog founders. He 
talks about not selling a product, but leading a revolution. Coming back to 
statically typed functional languages after 20 years in Java land, is a 
revolution for me.

Anyone else being having some fun with Elm on your holidays?

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to