Skip to content

Commit 93375af

Browse files
committed
Merge branch 'develop'
2 parents 5b34797 + 9a091bb commit 93375af

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

RELEASE_NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Release Notes
22
=============
33

4+
## 1.1.1
5+
6+
- Fixed the `strf` function (see [#6](https://github.com/giraffe-fsharp/Giraffe.ViewEngine/issues/6))
7+
48
## 1.1.0
59

610
- Added `strf` which is a shortcut for the commonly used `sprintf fmt |> encodedText` function.

src/Giraffe.ViewEngine/Engine.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module HtmlElements =
9191
/// <summary>
9292
/// The `strf` function will output the result from `sprintf fmt` as `encodedText`.
9393
/// </summary>
94-
let strf fmt = sprintf fmt |> encodedText
94+
let strf fmt = Printf.kprintf encodedText fmt
9595

9696
// ---------------------------
9797
// Default HTML elements
@@ -664,4 +664,4 @@ module RenderView =
664664
let htmlDocument (document : XmlNode) : byte[] =
665665
let sb = StringBuilderPool.Rent()
666666
IntoStringBuilder.htmlDocument sb document
667-
outputAsBytes sb
667+
outputAsBytes sb

0 commit comments

Comments
 (0)