jason 075d766964 first | 3 years ago | |
---|---|---|
.. | ||
parse | 3 years ago | |
testdata | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
doc.go | 3 years ago | |
example_test.go | 3 years ago | |
examplefiles_test.go | 3 years ago | |
examplefunc_test.go | 3 years ago | |
exec.go | 3 years ago | |
exec_test.go | 3 years ago | |
funcs.go | 3 years ago | |
go.mod | 3 years ago | |
helper.go | 3 years ago | |
multi_test.go | 3 years ago | |
template.go | 3 years ago |
text/template
package with newline elisionThis 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