From ae8543108235fb6f49f2931253d2cd0cf82a0cf9 Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Mon, 27 May 2019 22:34:01 -0600 Subject: [PATCH] Added RawText type --- CHANGELOG.md | 6 +++++- hatmill.go | 16 +++++++++++++++- hatmill_test.go | 7 +++++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 133b7c6..f43a596 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog -## Unversioned +## [0.0.4] - 2019-05-27 + +### Added + +- `hatmill.RawText` type for unescaped text nodes ### Changed diff --git a/hatmill.go b/hatmill.go index bc21ff7..c7df3cb 100644 --- a/hatmill.go +++ b/hatmill.go @@ -165,7 +165,21 @@ func (t Text) WriteTo(w io.Writer) (n int64, err error) { return } -// WriteDocument writes an HTML5 doctype declaration, followed by root. +// RawText represents an HTML text node. Unlike Text, its contents are not +// escaped when written, so it should be used with care. It is intended mainly +// for use in +} + func Example() { userInput := ""