File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11Release 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.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments