Skip to content

Releases: giraffe-fsharp/Giraffe

0.1.0-beta-003

26 Aug 19:19
Compare
Choose a tag to compare
0.1.0-beta-003 Pre-release
Pre-release

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 and Giraffe.Razor

0.1.0-beta-002

19 Aug 12:30
Compare
Choose a tag to compare
0.1.0-beta-002 Pre-release
Pre-release
  • Fixed the warbler function. Should work as expected again.
  • Added support for Async<'T> in the task {} workflow. You can use an Async<'T> from within task {} without having to convert back to a Task<'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

12 Aug 13:59
Compare
Choose a tag to compare
0.1.0-beta-001 Pre-release
Pre-release

First Beta release of Giraffe!

Major changes:

The HttpHandler has slightly changed.

Blog post with more info is coming shortly!

0.1.0-alpha025

22 Jul 11:02
Compare
Choose a tag to compare
0.1.0-alpha025 Pre-release
Pre-release

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

16 Jul 09:55
Compare
Choose a tag to compare
0.1.0-alpha024 Pre-release
Pre-release
  • New routeBind http handler
  • Annotated all default http handler functions with the HttpHandler type

0.1.0-alpha023

05 Jul 09:46
Compare
Choose a tag to compare
0.1.0-alpha023 Pre-release
Pre-release

Bug fixes:

  • Fixed build error in the Giraffe template.

Further improvements to the XmlViewEngine:

  • Renamed renderXmlString to renderXmlNode and renamed renderHtmlString to renderHtmlNode
  • Added two more methods which accept a XmlNode list: renderXmlNodes and renderHtmlNodes
  • Changed the return value of encodedText and rawText to return a single XmlNode instead of XmlNode 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

01 Jul 23:50
Compare
Choose a tag to compare
0.1.0-alpha022 Pre-release
Pre-release

A few modifications to the former HtmlEngine so that it can be used for correct XML rendering as well:

  • Renamed the Giraffe.HtmlEngine module to Giraffe.XmlViewEngine
  • Renamed HtmlAttribute to XmlAttribute, HtmlElement to XmlElement and HtmlNode to XmlNode
  • Renamed and make the function nodeToHtmlString private
  • Added comment function to the Giraffe.XmlViewEngine module for creating XML comments
  • Added renderXmlString and renderHtmlString functions to Giraffe.XmlViewEngine module for rendering XML and HTML nodes.

0.1.0-alpha021

01 Jul 16:55
Compare
Choose a tag to compare
0.1.0-alpha021 Pre-release
Pre-release
  • Changed HttpContext.BindQueryString<'T>() to return 'T instead of Async<'T>
  • Added HttpContext.TryGetQueryStringValue (key : string) which returns an Option<string>
  • Added HttpContext.GetQueryStringValue (key : string) which returns a Result<string, string>

0.1.0-alpha020

23 Jun 09:57
Compare
Choose a tag to compare
0.1.0-alpha020 Pre-release
Pre-release

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.

0.1.0-alpha019

31 May 09:03
Compare
Choose a tag to compare