We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bd3229 commit c18ce4fCopy full SHA for c18ce4f
src/Saturn/ControllerHelpers.fs
@@ -32,6 +32,10 @@ module ControllerHelpers =
32
let render (ctx: HttpContext) template =
33
ctx.WriteHtmlStringAsync template
34
35
+ ///Returns to the client rendered xml template.
36
+ let renderXml (ctx: HttpContext) template =
37
+ ctx.WriteHtmlStringAsync (Giraffe.GiraffeViewEngine.renderXmlNode template)
38
+
39
///Returns to the client static file.
40
let file (ctx: HttpContext) path =
41
ctx.WriteHtmlFileAsync path
0 commit comments