1
0
mirror of https://github.com/golang/go synced 2024-10-04 10:21:21 -06:00
go/src/pkg/exp/template/html
Mike Samuel b0cddb98b9 exp/template/html: avoid redundant escaping directives.
This is a possible optimization.  I'm not sure the complexity is worth it.
The new benchmark in escape_test is 46us without and 35us with the optimization.

R=nigeltao
CC=golang-dev
https://golang.org/cl/5168041
2011-09-29 21:31:41 -07:00
..
attr.go exp/template/html: handle custom attrs and HTML5 embedded elements. 2011-09-28 14:07:48 -07:00
clone_test.go exp/template/html: escape {{template}} calls and sets of templates 2011-09-13 16:57:39 -07:00
clone.go exp/template/html: escape {{template}} calls and sets of templates 2011-09-13 16:57:39 -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
content.go exp/template/html: tighten rules on dynamic attr names. 2011-09-23 09:25:10 -07:00
context.go exp/template/html: simplify transition functions 2011-09-21 19:04:41 -07:00
css_test.go exp/template/html: autoescape actions in HTML style attributes. 2011-09-09 07:18:20 +10:00
css.go exp/template/html: pre-sanitized content 2011-09-15 08:51:55 -07: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: add doc comments for undocumented Err... constants. 2011-09-27 13:22:01 -07:00
escape_test.go exp/template/html: avoid redundant escaping directives. 2011-09-29 21:31:41 -07:00
escape.go exp/template/html: avoid redundant escaping directives. 2011-09-29 21:31:41 -07:00
html_test.go exp/template/html: simplify transition functions 2011-09-21 19:04:41 -07:00
html.go exp/template/html: handle custom attrs and HTML5 embedded elements. 2011-09-28 14:07:48 -07:00
js_test.go exp/template/html: make sure marshalled JSON can be parsed as JS. 2011-09-26 02:10:43 -07:00
js.go exp/template/html: make sure marshalled JSON can be parsed as JS. 2011-09-26 02:10:43 -07:00
Makefile exp/template/html: tighten rules on dynamic attr names. 2011-09-23 09:25:10 -07:00
transition.go exp/template/html: handle custom attrs and HTML5 embedded elements. 2011-09-28 14:07:48 -07:00
url_test.go exp/template/html: autoescape actions in HTML style attributes. 2011-09-09 07:18:20 +10:00
url.go exp/template/html: simplify URL filtering 2011-09-29 18:09:11 -07:00