From 28438d198b1f40f54b9e10e5ac2981f4a70e2a4c Mon Sep 17 00:00:00 2001 From: jesper-mortensen Date: Thu, 5 Jun 2014 19:15:40 +0200 Subject: [PATCH] Fix #263, document HTML comments & IE conditionals --- content/templates/go-templates.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/templates/go-templates.md b/content/templates/go-templates.md index c9f6178cc..cdc351fe9 100644 --- a/content/templates/go-templates.md +++ b/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)