Skip to content

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

@gopherbot

Description

@gopherbot

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

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