• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

parse/H18-Jul-2019-2,9892,431

testdata/H18-Jul-2019-1410

LICENSEH A D18-Jul-20191.4 KiB2824

README.mdH A D18-Jul-2019381 2618

doc.goH A D18-Jul-201915.1 KiB4071

example_test.goH A D18-Jul-20191.5 KiB7334

examplefiles_test.goH A D18-Jul-20196.1 KiB184103

examplefunc_test.goH A D18-Jul-20191.5 KiB5626

exec.goH A D18-Jul-201925.8 KiB846681

exec_test.goH A D18-Jul-201933.5 KiB1,045871

funcs.goH A D18-Jul-201914.5 KiB599485

go.modH A D18-Jul-201938 21

helper.goH A D18-Jul-20193.6 KiB10961

multi_test.goH A D18-Jul-20197.5 KiB294264

template.goH A D18-Jul-20196.6 KiB219145

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