Giraffe v0.1.0-alpha023 Release Notes
-
๐ Bug fixes:
- ๐ Fixed build error in the Giraffe template.
Further improvements to the
XmlViewEngine
:- ๐ Renamed
renderXmlString
torenderXmlNode
and renamedrenderHtmlString
torenderHtmlNode
- โ Added two more methods which accept a
XmlNode list
:renderXmlNodes
andrenderHtmlNodes
- ๐ Changed the return value of
encodedText
andrawText
to return a singleXmlNode
instead ofXmlNode list
. This has the advantage that it can be used from within another list, which was not possible before.
Before:
let view = html [] [ head [] [ title [] (rawText "Giraffe") ] body [] (encodedText "Hello World") ]
Now:
let view = html [] [ head [] [ title [] [ rawText "Giraffe" ] ] body [] [ encodedText "Hello World" ] ]
This has the advantage that you can also do this, which wasn't possible before:
let view = html [] [ head [] [ title [] [ rawText "Giraffe" ] ] body [] [ encodedText "Hello World" p [] [ rawText "Hello" ] ] ]