Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

template.Execute() should accept a map for data #259

Closed
gopherbot opened this issue Nov 18, 2009 · 2 comments
Closed

template.Execute() should accept a map for data #259

gopherbot opened this issue Nov 18, 2009 · 2 comments

Comments

@gopherbot
Copy link
Contributor

by rawrz0r:

Currently, template.Execute() only accepts single strings, structs and
slices. It should probably be able to accept a map as well.

Russ notes that most of the time it makes sense to prepare a slice
containing the map data in the correct order, but I'll chuck this up here
anyway for you guys to think about.

w/r/t:
http://groups.google.com/group/golang-nuts/browse_thread/thread/637319b71a484657/7dba9e4ccb06b2cf#7dba9e4ccb06b2cf
@rsc
Copy link
Contributor

rsc commented Nov 18, 2009

Comment 1:

We'd certainly be happy to review a CL.  ;-)

Owner changed to r...@golang.org.

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Nov 20, 2009

Comment 2:

This issue was closed by revision bfbb315.

Status changed to Fixed.

Merged into issue #-.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants