Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinmoris committed Sep 1, 2020
2 parents 5b34797 + 9a091bb commit 93375af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Release Notes
=============

## 1.1.1

- Fixed the `strf` function (see [#6](https://github.com/giraffe-fsharp/Giraffe.ViewEngine/issues/6))

## 1.1.0

- Added `strf` which is a shortcut for the commonly used `sprintf fmt |> encodedText` function.
Expand Down
4 changes: 2 additions & 2 deletions src/Giraffe.ViewEngine/Engine.fs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ module HtmlElements =
/// <summary>
/// The `strf` function will output the result from `sprintf fmt` as `encodedText`.
/// </summary>
let strf fmt = sprintf fmt |> encodedText
let strf fmt = Printf.kprintf encodedText fmt

// ---------------------------
// Default HTML elements
Expand Down Expand Up @@ -664,4 +664,4 @@ module RenderView =
let htmlDocument (document : XmlNode) : byte[] =
let sb = StringBuilderPool.Rent()
IntoStringBuilder.htmlDocument sb document
outputAsBytes sb
outputAsBytes sb

0 comments on commit 93375af

Please sign in to comment.