From: jesper-mortensen Date: Thu, 5 Jun 2014 17:15:40 +0000 (+0200) Subject: Fix #263, document HTML comments & IE conditionals X-Git-Tag: v0.12~85 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=86c3de4be12b08cff9a6ac39d8a4f57e5ac77ba9;p=brevno-suite%2Fhugo Fix #263, document HTML comments & IE conditionals --- diff --git a/docs/content/templates/go-templates.md b/docs/content/templates/go-templates.md index c9f6178c..cdc351fe 100644 --- a/docs/content/templates/go-templates.md +++ b/docs/content/templates/go-templates.md @@ -221,6 +221,13 @@ Could be rewritten as Stuff Here {{ end }} +### Internet Explorer conditional comments using Pipes + +By default Go Templates remove HTML comments from output. This has the unfortunate side effect of removing Internet Explorer conditional comments. As a workaround, use something like this: + + {{ "" | safeHtml }} ## Context (aka. the dot)