jason 075d766964 first 3 years ago
..
parse 075d766964 first 3 years ago
testdata 075d766964 first 3 years ago
LICENSE 075d766964 first 3 years ago
README.md 075d766964 first 3 years ago
doc.go 075d766964 first 3 years ago
example_test.go 075d766964 first 3 years ago
examplefiles_test.go 075d766964 first 3 years ago
examplefunc_test.go 075d766964 first 3 years ago
exec.go 075d766964 first 3 years ago
exec_test.go 075d766964 first 3 years ago
funcs.go 075d766964 first 3 years ago
go.mod 075d766964 first 3 years ago
helper.go 075d766964 first 3 years ago
multi_test.go 075d766964 first 3 years ago
template.go 075d766964 first 3 years ago

README.md

Go's text/template package with newline elision

This is a fork of Go 1.4's text/template package with one addition: a backslash immediately after a closing delimiter will delete all subsequent newlines until a non-newline.

eg.

{{if true}}\
hello
{{end}}\

Will result in:

hello\n

Rather than:

\n
hello\n
\n