template: implement multi-word variable instantation for formatters.
Before one could say
{field}
or
{field|formatter}
Now one can also say
{field1 field2 field3}
or
{field1 field2 field3|formatter}
and the fields are passed as successive arguments to the formatter,
analogous to fmt.Print.
LGTM - gri On Wed, Dec 1, 2010 at 2:27 PM, <r@golang.org> wrote: > Reviewers: ...
14 years, 3 months ago
(2010-12-02 00:28:54 UTC)
#2
LGTM
- gri
On Wed, Dec 1, 2010 at 2:27 PM, <r@golang.org> wrote:
> Reviewers: rsc, gri,
>
> Message:
> Hello rsc, gri (cc: golang-dev@googlegroups.com),
>
> I'd like you to review this change.
>
>
> Description:
> template: implement multi-word variable instantation for formatters.
> Before one could say
> {field}
> or
> {field|formatter}
> Now one can also say
> {field1 field2 field3}
> or
> {field1 field2 field3|formatter}
> and the fields are passed as successive arguments to the formatter,
> analogous to fmt.Print.
>
> Please review this at http://codereview.appspot.com/3385041/
>
> Affected files:
> M src/pkg/template/template.go
> M src/pkg/template/template_test.go
>
>
>
*** Submitted as http://code.google.com/p/go/source/detail?r=e7e503c689aa *** template: implement multi-word variable instantation for formatters. Before one could ...
14 years, 3 months ago
(2010-12-02 01:10:42 UTC)
#3
*** Submitted as http://code.google.com/p/go/source/detail?r=e7e503c689aa ***
template: implement multi-word variable instantation for formatters.
Before one could say
{field}
or
{field|formatter}
Now one can also say
{field1 field2 field3}
or
{field1 field2 field3|formatter}
and the fields are passed as successive arguments to the formatter,
analogous to fmt.Print.
R=rsc, gri
CC=golang-dev
http://codereview.appspot.com/3385041
Issue 3385041: code review 3385041: template: implement multi-word variable instantation fo...
(Closed)
Created 14 years, 3 months ago by r
Modified 14 years, 3 months ago
Reviewers:
Base URL:
Comments: 0