Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(280)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 5654062: code review 5654062: html/template: Added more explicit wording about exampl...

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 11 months ago by bjorn.tipling
Modified:
13 years, 11 months ago
Reviewers:
r
CC:
golang-dev, r, r2
Visibility:
Public.
html/template: Added more explicit wording about examples and documentation.

Patch Set 1 #

Patch Set 2 : diff -r 4a0c77722a5e https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 4a0c77722a5e https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 4 : diff -r 7e665c5da059 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 5 : diff -r 7e665c5da059 https://go.googlecode.com/hg/ #

Created: 13 years, 11 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M src/pkg/html/template/doc.go View 1 2 3 4 3 chunks +12 lines, -7 lines 0 comments Download
Total messages: 12
|
bjorn.tipling
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 11 months ago (2012年02月11日 19:25:35 UTC) #1
Hello golang-dev@googlegroups.com,
I'd like you to review this change to
https://go.googlecode.com/hg/ 
Sign in to reply to this message.
bjorn.tipling
On 2012年02月11日 19:25:35, bjorn.tipling wrote: > Hello mailto:golang-dev@googlegroups.com, > > I'd like you to review ...
13 years, 11 months ago (2012年02月11日 19:34:44 UTC) #2
On 2012年02月11日 19:25:35, bjorn.tipling wrote:
> Hello mailto:golang-dev@googlegroups.com,
> 
> I'd like you to review this change to
> https://go.googlecode.com/hg/
I thought some of the language in this part of the documentation was not
explicit enough about when it was referring to text/template vs html/template.
While you could simply assume that people reading the documentation for the
html/template would know to also check text/template, I just thought it would be
helpful and wouldn't hurt to add a line encouraging it.
Sign in to reply to this message.
r
http://codereview.appspot.com/5654062/diff/3002/src/pkg/html/template/doc.go File src/pkg/html/template/doc.go (right): http://codereview.appspot.com/5654062/diff/3002/src/pkg/html/template/doc.go#newcode10 src/pkg/html/template/doc.go:10: text/template documentation. good intention but we can be clearer ...
13 years, 11 months ago (2012年02月11日 20:39:42 UTC) #3
http://codereview.appspot.com/5654062/diff/3002/src/pkg/html/template/doc.go
File src/pkg/html/template/doc.go (right):
http://codereview.appspot.com/5654062/diff/3002/src/pkg/html/template/doc.go#...
src/pkg/html/template/doc.go:10: text/template documentation.
good intention but we can be clearer and say, "use this".
how about:
Package template (html/template) implements data-driven templates for generating
HTML output safe against code injection. It It provides the same interface as
package text/template and should be used instead of text/template whenever the
output is HTML.
The documentation here focuses on the security features of the package. For
information about how to program the templates themselves, see the documentation
for text/template.
Sign in to reply to this message.
bjorn.tipling
Agreed that's even better. Adding this now. On 2012年02月11日 20:39:42, r wrote: > http://codereview.appspot.com/5654062/diff/3002/src/pkg/html/template/doc.go > ...
13 years, 11 months ago (2012年02月11日 22:33:34 UTC) #4
Agreed that's even better. Adding this now.
On 2012年02月11日 20:39:42, r wrote:
> http://codereview.appspot.com/5654062/diff/3002/src/pkg/html/template/doc.go
> File src/pkg/html/template/doc.go (right):
> 
>
http://codereview.appspot.com/5654062/diff/3002/src/pkg/html/template/doc.go#...
> src/pkg/html/template/doc.go:10: text/template documentation.
> good intention but we can be clearer and say, "use this".
> 
> how about:
> 
> Package template (html/template) implements data-driven templates for
generating
> HTML output safe against code injection. It It provides the same interface as
> package text/template and should be used instead of text/template whenever the
> output is HTML.
> 
> The documentation here focuses on the security features of the package. For
> information about how to program the templates themselves, see the
documentation
> for text/template.
Sign in to reply to this message.
bjorn.tipling
Hello golang-dev@googlegroups.com, r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 11 months ago (2012年02月11日 22:39:47 UTC) #5
Hello golang-dev@googlegroups.com, r@golang.org (cc:
golang-dev@googlegroups.com),
Please take another look.
Sign in to reply to this message.
r
one last tweak. http://codereview.appspot.com/5654062/diff/4003/src/pkg/html/template/doc.go File src/pkg/html/template/doc.go (right): http://codereview.appspot.com/5654062/diff/4003/src/pkg/html/template/doc.go#newcode18 src/pkg/html/template/doc.go:18: to safely parse and execute html ...
13 years, 11 months ago (2012年02月12日 00:41:25 UTC) #6
one last tweak.
http://codereview.appspot.com/5654062/diff/4003/src/pkg/html/template/doc.go
File src/pkg/html/template/doc.go (right):
http://codereview.appspot.com/5654062/diff/4003/src/pkg/html/template/doc.go#...
src/pkg/html/template/doc.go:18: to safely parse and execute html templates.
to parse and execute HTML templates safely.
Sign in to reply to this message.
bjorn.tipling
Hello golang-dev@googlegroups.com, r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 11 months ago (2012年02月12日 01:03:14 UTC) #7
Hello golang-dev@googlegroups.com, r@golang.org (cc:
golang-dev@googlegroups.com),
Please take another look.
Sign in to reply to this message.
bjorn.tipling
Oh that is a split infinitive isn't it. Oops. On 2012年02月12日 00:41:25, r wrote: > ...
13 years, 11 months ago (2012年02月12日 01:05:23 UTC) #8
Oh that is a split infinitive isn't it. Oops.
On 2012年02月12日 00:41:25, r wrote:
> one last tweak.
> 
> http://codereview.appspot.com/5654062/diff/4003/src/pkg/html/template/doc.go
> File src/pkg/html/template/doc.go (right):
> 
>
http://codereview.appspot.com/5654062/diff/4003/src/pkg/html/template/doc.go#...
> src/pkg/html/template/doc.go:18: to safely parse and execute html templates.
> to parse and execute HTML templates safely.
Sign in to reply to this message.
bjorn.tipling
http://codereview.appspot.com/5654062/diff/3002/src/pkg/html/template/doc.go File src/pkg/html/template/doc.go (right): http://codereview.appspot.com/5654062/diff/3002/src/pkg/html/template/doc.go#newcode10 src/pkg/html/template/doc.go:10: text/template documentation. On 2012年02月11日 20:39:42, r wrote: > good ...
13 years, 11 months ago (2012年02月12日 01:05:46 UTC) #9
http://codereview.appspot.com/5654062/diff/3002/src/pkg/html/template/doc.go
File src/pkg/html/template/doc.go (right):
http://codereview.appspot.com/5654062/diff/3002/src/pkg/html/template/doc.go#...
src/pkg/html/template/doc.go:10: text/template documentation.
On 2012年02月11日 20:39:42, r wrote:
> good intention but we can be clearer and say, "use this".
> 
> how about:
> 
> Package template (html/template) implements data-driven templates for
generating
> HTML output safe against code injection. It It provides the same interface as
> package text/template and should be used instead of text/template whenever the
> output is HTML.
> 
> The documentation here focuses on the security features of the package. For
> information about how to program the templates themselves, see the
documentation
> for text/template.
Done.
http://codereview.appspot.com/5654062/diff/4003/src/pkg/html/template/doc.go
File src/pkg/html/template/doc.go (right):
http://codereview.appspot.com/5654062/diff/4003/src/pkg/html/template/doc.go#...
src/pkg/html/template/doc.go:18: to safely parse and execute html templates.
On 2012年02月12日 00:41:26, r wrote:
> to parse and execute HTML templates safely.
Done.
Sign in to reply to this message.
r2
On 12/02/2012, at 12:05 PM, bjorn.tipling@gmail.com wrote: > Oh that is a split infinitive isn't ...
13 years, 11 months ago (2012年02月12日 01:17:10 UTC) #10
On 12/02/2012, at 12:05 PM, bjorn.tipling@gmail.com wrote:
> Oh that is a split infinitive isn't it. Oops.
that's OK, it's the lower-case html and binding of 'safely' that wanted fixing.
Sign in to reply to this message.
r
LGTM thanks
13 years, 11 months ago (2012年02月12日 01:17:27 UTC) #11
LGTM
thanks
Sign in to reply to this message.
r
*** Submitted as http://code.google.com/p/go/source/detail?r=637fa427fef5 *** html/template: Added more explicit wording about examples and documentation. R=golang-dev, ...
13 years, 11 months ago (2012年02月12日 01:18:07 UTC) #12
*** Submitted as http://code.google.com/p/go/source/detail?r=637fa427fef5 ***
html/template: Added more explicit wording about examples and documentation.
R=golang-dev, r, r
CC=golang-dev
http://codereview.appspot.com/5654062
Committer: Rob Pike <r@golang.org>
Sign in to reply to this message.
|
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /