Releases: giraffe-fsharp/Giraffe
0.1.0-beta-003
Giraffe 0.1.0-beta-003
- Fixed bug where
readFileAsString
closed the stream before the file could be read
Giraffe.Razor 0.1.0-beta-002
- Fixed bug so that
_ViewStart.cshtml
files get respected now
giraffe-template 0.1.9
- Fixed wrong version numbers in package references for
Giraffe
andGiraffe.Razor
0.1.0-beta-002
- Fixed the
warbler
function. Should work as expected again. - Added support for
Async<'T>
in thetask {}
workflow. You can use anAsync<'T>
from withintask {}
without having to convert back to aTask<'T>
- Set the Giraffe dependency version in the template to a concrete version to avoid breaking changes in the template.
0.1.0-beta-001
First Beta release of Giraffe!
Major changes:
The HttpHandler
has slightly changed.
Blog post with more info is coming shortly!
0.1.0-alpha025
Changed the type XmlAttribute
from the XmlViewEngine
to accept either a string * string
key value pair or a boolean attribute of type string
. This was a missing to enable script tags such as <script src="..." async></script>
.
Added two helper functions (attr
and flag
) to simplify the creation of those attributes:
script [
attr "src" "http://example.org/example.js"
attr "lang" "javascript"
flag "async" ] []
0.1.0-alpha024
- New
routeBind
http handler - Annotated all default http handler functions with the
HttpHandler
type
0.1.0-alpha023
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" ]
]
]
0.1.0-alpha022
A few modifications to the former HtmlEngine
so that it can be used for correct XML rendering as well:
- Renamed the
Giraffe.HtmlEngine
module toGiraffe.XmlViewEngine
- Renamed
HtmlAttribute
toXmlAttribute
,HtmlElement
toXmlElement
andHtmlNode
toXmlNode
- Renamed and make the function
nodeToHtmlString
private - Added
comment
function to theGiraffe.XmlViewEngine
module for creating XML comments - Added
renderXmlString
andrenderHtmlString
functions toGiraffe.XmlViewEngine
module for rendering XML and HTML nodes.
0.1.0-alpha021
- Changed
HttpContext.BindQueryString<'T>()
to return'T
instead ofAsync<'T>
- Added
HttpContext.TryGetQueryStringValue (key : string)
which returns anOption<string>
- Added
HttpContext.GetQueryStringValue (key : string)
which returns aResult<string, string>
0.1.0-alpha020
Split out the Razor view engine and the DotLiquid templating engine into separate NuGet packages:
Giraffe.Razor
Giraffe.DotLiquid
Please reference the additional packages if you were using any of the view or templating handlers.
Also updated the giraffe-template
NuGet package with the new changes and adapted the build.ps1
PowerShell script to successfully build on Linux environments too.
Additionally TravisCI builds are run as part of every commit as well now.