├── .github └── workflows │ └── go.yml ├── After.png ├── Before.png ├── LICENSE ├── README.md ├── dumb.go ├── go.mod ├── go.sum ├── gotmplfmt.1 ├── gotmplfmt.1.md ├── html.go ├── lex.go ├── main.go ├── pretty_test.go ├── stable_test.go ├── testdata ├── block-level-html.pretty ├── block-level-html.tmpl ├── define-define.pretty ├── define-define.tmpl ├── define-with-elseif-subnodes.tmpl ├── define-with-plain-html.tmpl ├── define-with-subnodes.pretty ├── define-with-subnodes.tmpl ├── dontclose.pretty ├── dontclose.tmpl ├── footer.pretty ├── footer.tmpl ├── html-tag-close.pretty ├── html-tag-close.tmpl ├── ifelse.pretty ├── ifelse.tmpl ├── ifelseif.pretty ├── ifelseif.tmpl ├── mfa.pretty ├── mfa.tmpl ├── opentags.pretty ├── opentags.tmpl ├── pre.tmpl ├── rangeelse.pretty ├── rangeelse.tmpl ├── single.pretty ├── single.tmpl ├── stablelarge.tmpl ├── template-template.pretty ├── template-template.tmpl ├── textarea.pretty ├── textarea.tmpl ├── withelse.pretty ├── withelse.tmpl ├── withelsewith.pretty └── withelsewith.tmpl └── writer.go /.github/workflows/go.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/.github/workflows/go.yml -------------------------------------------------------------------------------- /After.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/After.png -------------------------------------------------------------------------------- /Before.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/Before.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/README.md -------------------------------------------------------------------------------- /dumb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/dumb.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/go.sum -------------------------------------------------------------------------------- /gotmplfmt.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/gotmplfmt.1 -------------------------------------------------------------------------------- /gotmplfmt.1.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/gotmplfmt.1.md -------------------------------------------------------------------------------- /html.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/html.go -------------------------------------------------------------------------------- /lex.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/lex.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/main.go -------------------------------------------------------------------------------- /pretty_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/pretty_test.go -------------------------------------------------------------------------------- /stable_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/stable_test.go -------------------------------------------------------------------------------- /testdata/block-level-html.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/block-level-html.pretty -------------------------------------------------------------------------------- /testdata/block-level-html.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/block-level-html.tmpl -------------------------------------------------------------------------------- /testdata/define-define.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/define-define.pretty -------------------------------------------------------------------------------- /testdata/define-define.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/define-define.tmpl -------------------------------------------------------------------------------- /testdata/define-with-elseif-subnodes.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/define-with-elseif-subnodes.tmpl -------------------------------------------------------------------------------- /testdata/define-with-plain-html.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/define-with-plain-html.tmpl -------------------------------------------------------------------------------- /testdata/define-with-subnodes.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/define-with-subnodes.pretty -------------------------------------------------------------------------------- /testdata/define-with-subnodes.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/define-with-subnodes.tmpl -------------------------------------------------------------------------------- /testdata/dontclose.pretty: -------------------------------------------------------------------------------- 1 |
2 | -------------------------------------------------------------------------------- /testdata/dontclose.tmpl: -------------------------------------------------------------------------------- 1 |
2 | -------------------------------------------------------------------------------- /testdata/footer.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/footer.pretty -------------------------------------------------------------------------------- /testdata/footer.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/footer.tmpl -------------------------------------------------------------------------------- /testdata/html-tag-close.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/html-tag-close.pretty -------------------------------------------------------------------------------- /testdata/html-tag-close.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/html-tag-close.tmpl -------------------------------------------------------------------------------- /testdata/ifelse.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/ifelse.pretty -------------------------------------------------------------------------------- /testdata/ifelse.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/ifelse.tmpl -------------------------------------------------------------------------------- /testdata/ifelseif.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/ifelseif.pretty -------------------------------------------------------------------------------- /testdata/ifelseif.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/ifelseif.tmpl -------------------------------------------------------------------------------- /testdata/mfa.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/mfa.pretty -------------------------------------------------------------------------------- /testdata/mfa.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/mfa.tmpl -------------------------------------------------------------------------------- /testdata/opentags.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/opentags.pretty -------------------------------------------------------------------------------- /testdata/opentags.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/opentags.tmpl -------------------------------------------------------------------------------- /testdata/pre.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/pre.tmpl -------------------------------------------------------------------------------- /testdata/rangeelse.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/rangeelse.pretty -------------------------------------------------------------------------------- /testdata/rangeelse.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/rangeelse.tmpl -------------------------------------------------------------------------------- /testdata/single.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/single.pretty -------------------------------------------------------------------------------- /testdata/single.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/single.tmpl -------------------------------------------------------------------------------- /testdata/stablelarge.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/stablelarge.tmpl -------------------------------------------------------------------------------- /testdata/template-template.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/template-template.pretty -------------------------------------------------------------------------------- /testdata/template-template.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/template-template.tmpl -------------------------------------------------------------------------------- /testdata/textarea.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/textarea.pretty -------------------------------------------------------------------------------- /testdata/textarea.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/textarea.tmpl -------------------------------------------------------------------------------- /testdata/withelse.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/withelse.pretty -------------------------------------------------------------------------------- /testdata/withelse.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/withelse.tmpl -------------------------------------------------------------------------------- /testdata/withelsewith.pretty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/withelsewith.pretty -------------------------------------------------------------------------------- /testdata/withelsewith.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/testdata/withelsewith.tmpl -------------------------------------------------------------------------------- /writer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miekg/gotmplfmt/HEAD/writer.go --------------------------------------------------------------------------------