go/src/pkg/exp/template/html
Mike Samuel 1f577d26d7 exp/template/html: simplify transition functions
This simplifies transition functions to make it easier to reliably
elide comments in a later CL.

Before:
- transition functions are responsible for detecting special end tags.
After:
- the code to detect special end tags is done in one place.

We were relying on end tags being skipped which meant we were
not noticing comments inside script/style elements that contain no
substitutions.
This change means we will notice all such comments where necessary,
but stripTags will notice none since it does not need to.  This speeds
up stripTags.

R=nigeltao
CC=golang-dev
https://golang.org/cl/5074041
2011-09-21 19:04:41 -07:00
..
Makefile exp/template/html: moved error docs out of package docs onto error codes 2011-09-15 19:05:33 -07:00
clone.go exp/template/html: escape {{template}} calls and sets of templates 2011-09-13 16:57:39 -07:00
clone_test.go exp/template/html: escape {{template}} calls and sets of templates 2011-09-13 16:57:39 -07:00
content.go exp/template/html: allow quotes on either side of conditionals and dynamic HTML names 2011-09-18 19:10:15 -07:00
content_test.go exp/template/html: allow quotes on either side of conditionals and dynamic HTML names 2011-09-18 19:10:15 -07:00
context.go exp/template/html: simplify transition functions 2011-09-21 19:04:41 -07:00
css.go exp/template/html: pre-sanitized content 2011-09-15 08:51:55 -07:00
css_test.go exp/template/html: autoescape actions in HTML style attributes. 2011-09-09 07:18:20 +10:00
doc.go exp/template/html: moved error docs out of package docs onto error codes 2011-09-15 19:05:33 -07:00
error.go exp/template/html: allow commenting out of actions 2011-09-19 19:52:31 -07:00
escape.go exp/template/html: simplify transition functions 2011-09-21 19:04:41 -07:00
escape_test.go exp/template/html: simplify transition functions 2011-09-21 19:04:41 -07:00
html.go exp/template/html: simplify transition functions 2011-09-21 19:04:41 -07:00
html_test.go exp/template/html: simplify transition functions 2011-09-21 19:04:41 -07:00
js.go exp/template/html: pre-sanitized content 2011-09-15 08:51:55 -07:00
js_test.go exp/template/html: fix JS regexp escape of an empty string. 2011-09-12 11:57:34 +10:00
transition.go exp/template/html: simplify transition functions 2011-09-21 19:04:41 -07:00
url.go exp/template/html: pre-sanitized content 2011-09-15 08:51:55 -07:00
url_test.go exp/template/html: autoescape actions in HTML style attributes. 2011-09-09 07:18:20 +10:00