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

..03-May-2022-

parse/H18-Jul-2019-

testdata/H18-Jul-2019-

LICENSEH A D18-Jul-20191.4 KiB

README.mdH A D18-Jul-2019381

doc.goH A D18-Jul-201915.1 KiB

example_test.goH A D18-Jul-20191.5 KiB

examplefiles_test.goH A D18-Jul-20196.1 KiB

examplefunc_test.goH A D18-Jul-20191.5 KiB

exec.goH A D18-Jul-201925.8 KiB

exec_test.goH A D18-Jul-201933.5 KiB

funcs.goH A D18-Jul-201914.5 KiB

go.modH A D18-Jul-201938

helper.goH A D18-Jul-20193.6 KiB

multi_test.goH A D18-Jul-20197.5 KiB

template.goH A D18-Jul-20196.6 KiB

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