Skip to content

Simple methods should be allowed as data sources for templates #389

@hoisie

Description

@hoisie
(adding it as an issue in case I forget)

It would be awesome if the following was allowed:
http://pastie.org/731191

What is the expected output? What do you see instead?
I would like to see:
John Doe
John Doe

Right now I only see:
John Doe

What is your $GOOS?  $GOARCH?
linux/386

Which revision are you using?  (hg identify)
7620e54a1ccf+ tip

Please provide any additional information below.
The template package is quite constraining because you have to construct 
all the data before executing the template. You could have a lot more 
flexibility if no-arg methods were allowed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions