Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
parse/ | H | 18-Jul-2019 | - | 2,989 | 2,431 | |
testdata/ | H | 18-Jul-2019 | - | 14 | 10 | |
LICENSE | H A D | 18-Jul-2019 | 1.4 KiB | 28 | 24 | |
README.md | H A D | 18-Jul-2019 | 381 | 26 | 18 | |
doc.go | H A D | 18-Jul-2019 | 15.1 KiB | 407 | 1 | |
example_test.go | H A D | 18-Jul-2019 | 1.5 KiB | 73 | 34 | |
examplefiles_test.go | H A D | 18-Jul-2019 | 6.1 KiB | 184 | 103 | |
examplefunc_test.go | H A D | 18-Jul-2019 | 1.5 KiB | 56 | 26 | |
exec.go | H A D | 18-Jul-2019 | 25.8 KiB | 846 | 681 | |
exec_test.go | H A D | 18-Jul-2019 | 33.5 KiB | 1,045 | 871 | |
funcs.go | H A D | 18-Jul-2019 | 14.5 KiB | 599 | 485 | |
go.mod | H A D | 18-Jul-2019 | 38 | 2 | 1 | |
helper.go | H A D | 18-Jul-2019 | 3.6 KiB | 109 | 61 | |
multi_test.go | H A D | 18-Jul-2019 | 7.5 KiB | 294 | 264 | |
template.go | H A D | 18-Jul-2019 | 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