├── .github └── workflows │ ├── lint.yaml │ └── test.yaml ├── .golangci.yaml ├── LICENSE ├── Makefile ├── README.md ├── doc.go ├── engine.go ├── fs.go ├── fs_embed.go ├── fs_embed_test.go ├── fs_test.go ├── genericbufferpool.go ├── go.mod ├── go.sum ├── helpers.go ├── helpers_test.go ├── lock.go ├── render.go ├── render_data_test.go ├── render_html_test.go ├── render_json_test.go ├── render_jsonp_test.go ├── render_test.go ├── render_text_test.go ├── render_xml_test.go ├── sizedbufferpool.go └── testdata ├── basic ├── admin │ └── index.tmpl ├── another_layout.tmpl ├── content.tmpl ├── current_layout.tmpl ├── delims.tmpl ├── hello.tmpl ├── hypertext.html ├── layout.tmpl └── map.tmpl ├── blocks ├── content-partial.tmpl ├── content.tmpl └── layout.tmpl ├── custom_funcs └── index.tmpl ├── partials ├── content-partial.tmpl ├── content.tmpl └── layout.tmpl └── template-dir-test ├── 0.tmpl ├── dedicated.tmpl └── notbad.tmpl └── subdir └── 1.tmpl /.github/workflows/lint.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/.github/workflows/lint.yaml -------------------------------------------------------------------------------- /.github/workflows/test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/.github/workflows/test.yaml -------------------------------------------------------------------------------- /.golangci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/.golangci.yaml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/README.md -------------------------------------------------------------------------------- /doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/doc.go -------------------------------------------------------------------------------- /engine.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/engine.go -------------------------------------------------------------------------------- /fs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/fs.go -------------------------------------------------------------------------------- /fs_embed.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/fs_embed.go -------------------------------------------------------------------------------- /fs_embed_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/fs_embed_test.go -------------------------------------------------------------------------------- /fs_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/fs_test.go -------------------------------------------------------------------------------- /genericbufferpool.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/genericbufferpool.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/go.sum -------------------------------------------------------------------------------- /helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/helpers.go -------------------------------------------------------------------------------- /helpers_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/helpers_test.go -------------------------------------------------------------------------------- /lock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/lock.go -------------------------------------------------------------------------------- /render.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/render.go -------------------------------------------------------------------------------- /render_data_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/render_data_test.go -------------------------------------------------------------------------------- /render_html_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/render_html_test.go -------------------------------------------------------------------------------- /render_json_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/render_json_test.go -------------------------------------------------------------------------------- /render_jsonp_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/render_jsonp_test.go -------------------------------------------------------------------------------- /render_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/render_test.go -------------------------------------------------------------------------------- /render_text_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/render_text_test.go -------------------------------------------------------------------------------- /render_xml_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/render_xml_test.go -------------------------------------------------------------------------------- /sizedbufferpool.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/sizedbufferpool.go -------------------------------------------------------------------------------- /testdata/basic/admin/index.tmpl: -------------------------------------------------------------------------------- 1 |

Admin {{.}}

2 | -------------------------------------------------------------------------------- /testdata/basic/another_layout.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/testdata/basic/another_layout.tmpl -------------------------------------------------------------------------------- /testdata/basic/content.tmpl: -------------------------------------------------------------------------------- 1 |

{{ . }}

2 | -------------------------------------------------------------------------------- /testdata/basic/current_layout.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/testdata/basic/current_layout.tmpl -------------------------------------------------------------------------------- /testdata/basic/delims.tmpl: -------------------------------------------------------------------------------- 1 |

Hello {[{.}]}

-------------------------------------------------------------------------------- /testdata/basic/hello.tmpl: -------------------------------------------------------------------------------- 1 |

Hello {{.}}

2 | -------------------------------------------------------------------------------- /testdata/basic/hypertext.html: -------------------------------------------------------------------------------- 1 | Hypertext! 2 | -------------------------------------------------------------------------------- /testdata/basic/layout.tmpl: -------------------------------------------------------------------------------- 1 | head 2 | {{ yield }} 3 | foot 4 | -------------------------------------------------------------------------------- /testdata/basic/map.tmpl: -------------------------------------------------------------------------------- 1 |

Hello {{.world}}

2 | -------------------------------------------------------------------------------- /testdata/blocks/content-partial.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/testdata/blocks/content-partial.tmpl -------------------------------------------------------------------------------- /testdata/blocks/content.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/testdata/blocks/content.tmpl -------------------------------------------------------------------------------- /testdata/blocks/layout.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/testdata/blocks/layout.tmpl -------------------------------------------------------------------------------- /testdata/custom_funcs/index.tmpl: -------------------------------------------------------------------------------- 1 | {{ myCustomFunc }} 2 | -------------------------------------------------------------------------------- /testdata/partials/content-partial.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/testdata/partials/content-partial.tmpl -------------------------------------------------------------------------------- /testdata/partials/content.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/testdata/partials/content.tmpl -------------------------------------------------------------------------------- /testdata/partials/layout.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unrolled/render/HEAD/testdata/partials/layout.tmpl -------------------------------------------------------------------------------- /testdata/template-dir-test/0.tmpl: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testdata/template-dir-test/dedicated.tmpl/notbad.tmpl: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testdata/template-dir-test/subdir/1.tmpl: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------