Skip to content

Instantly share code, notes, and snippets.

@hundt
hundt / tl.patch
Created March 20, 2019 21:30
Initial implementation of Template Literal support - does not work with braces inside ${}
diff --git a/src/html/template/context.go b/src/html/template/context.go
index 7ab3d1fed6..01ee09b5e8 100644
--- a/src/html/template/context.go
+++ b/src/html/template/context.go
@@ -16,17 +16,18 @@ import (
// https://www.w3.org/TR/html5/syntax.html#the-end
// where the context element is null.
type context struct {
- state state
- delim delim