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

output writer #9

Open
mattn opened this issue Feb 18, 2011 · 2 comments
Open

output writer #9

mattn opened this issue Feb 18, 2011 · 2 comments

Comments

@mattn
Copy link

mattn commented Feb 18, 2011

I hope that mustache.go take an argument for output writer.
Maybe, it will be helpful for web.go

web.Get("/", func(ctx *web.Context) {
  data := GetData()
  tmpl.RenderFile("foobar.mustache", data, ctx)
})
@abh
Copy link
Contributor

abh commented Apr 3, 2013

It'd have to be a different function, maybe FRender(...) ? It doesn't seem like it'd save that much typing though.

@hoisie
Copy link
Owner

hoisie commented Apr 7, 2013

This is a great idea, and it's more consistent with the Go conventions. There are a couple PR that address this, so it should be in shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants