go/src/html
Emmanuel Odeke 3f66d8c84b html/template: add examples of loading templates from files
Adds examples showing loading templates from files and
executing them.

Shows examples:
- Using ParseGlob.
- Using ParseFiles.
- Using helper functions to share and use templates
in different contexts by adding them to an existing
bundle of templates.
- Using a group of driver templates with distinct sets
of helper templates.

Almost all of the code was directly copied from text/template.

Fixes #8500

Change-Id: Ic3d91d5232afc5a1cd2d8cd3d9a5f3b754c64225
Reviewed-on: https://go-review.googlesource.com/21854
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-04-13 02:28:28 +00:00
..
template html/template: add examples of loading templates from files 2016-04-13 02:28:28 +00:00
entity.go
entity_test.go
escape.go html: fix typo in UnescapeString string docs 2016-04-10 18:50:25 +00:00
escape_test.go html: speed up UnescapeString 2015-08-22 12:45:38 +00:00
example_test.go html: add examples to the functions 2015-06-19 05:15:22 +00:00