On Tuesday, January 10, 2017 at 2:09:01 PM UTC, Rupert Smith wrote:
>
> view : LinkBuilder msg -> Model.Content -> Html msg
>

I forgot to mention, the view function does not take the template to apply 
the content to to produce html, because it is looked up. Within the Content 
there is something called ContentType which provides the names of 2 
templates, the layout and the template - its the same concept as handlebars 
express uses. The layout is often used to render the page header and 
footer, and the template for the page body, this allows the same content to 
be used with different layouts more easily and provides a nice degree of 
flexibility. The lookup to the layout and template functions is hard coded 
into 2 Dicts that map their names onto the right functions.

-- 
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