hoisie / mustache

The mustache template language in Go
MIT License
1.11k stars 225 forks source link

Added RenderWriter method. #19

Closed drhodes closed 11 years ago

drhodes commented 12 years ago

Thanks for the great template library.

I needed to render to an io.Writer, so I added a method called RenderWriter.

I couldn't tell if you prefer to gofmt your code, so I didn't run it and tried to maintain your formatting. There's a new test called TestWriter and the docs were updated.

hoisie commented 11 years ago

Thanks for the pull request. Can you change the name to RenderTo ?

drhodes commented 11 years ago

Ok, I think that does it.

hoisie commented 11 years ago

Can you also run 'make format' ? Or run:

gofmt -s -tabs=false -tabwidth=4 -w mustache.go gofmt -s -tabs=false -tabwidth=4 -w mustache_test.go 

hoisie commented 11 years ago

This pull request has a lot of other stuff in it, so it's hard to merge. Can you make a separate pull request for RenderTo?