Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 19-Jun-2020 | - | ||||
parse/ | H | 19-Jun-2020 | - | 2,093 | 1,609 | |
LICENSE | H A D | 19-Jun-2020 | 1.4 KiB | 28 | 24 | |
README.md | H A D | 19-Jun-2020 | 381 | 26 | 18 | |
doc.go | H A D | 19-Jun-2020 | 15.1 KiB | 407 | 1 | |
exec.go | H A D | 19-Jun-2020 | 25.8 KiB | 846 | 681 | |
funcs.go | H A D | 19-Jun-2020 | 14.5 KiB | 599 | 485 | |
go.mod | H A D | 19-Jun-2020 | 38 | 2 | 1 | |
helper.go | H A D | 19-Jun-2020 | 3.6 KiB | 109 | 61 | |
template.go | H A D | 19-Jun-2020 | 6.6 KiB | 219 | 145 |
README.md
1# Go's `text/template` package with newline elision 2 3This is a fork of Go 1.4's [text/template](http://golang.org/pkg/text/template/) package with one addition: a backslash immediately after a closing delimiter will delete all subsequent newlines until a non-newline. 4 5eg. 6 7``` 8{{if true}}\ 9hello 10{{end}}\ 11``` 12 13Will result in: 14 15``` 16hello\n 17``` 18 19Rather than: 20 21``` 22\n 23hello\n 24\n 25``` 26