billstclair / elm-html-template

Turn JSON templates and dictionaries into Elm Html
https://lisplog.org/elm-html-template/
MIT License
6 stars 0 forks source link

loopFunction should not return an HtmlAtom #2

Closed billstclair closed 7 years ago

billstclair commented 7 years ago

Because it needs to descend and expand function calls, loopBody calls renderHtmlAtom and wraps it as an HtmlAtom. This is not good for adding more functions and nesting function calls. It would be better to recursively descend, expanding function calls as you go, and return a regular atom, delaying rendering as long as possible.

billstclair commented 7 years ago

Fixed over the last 24 hours or so.