martini-contrib / render

Martini middleware/handler for easily rendering serialized JSON, XML, and HTML template responses.
MIT License
245 stars 57 forks source link

Default options inconsistent with those presented in the README #50

Open boreq opened 9 years ago

boreq commented 9 years ago

I believe that the convention is to present the default values when listing available configuration keys in various docs and README files. The values presented in the Options section of the README are inconsistent with the defaults defined in the source code. Example:

  Extensions: []string{".tmpl", ".html"},

but the source code defaults to

opt.Extensions = []string{".tmpl"}

That might be confusing as for example I assumed that the configuration presented in the README is consistent with the default one and couldn't figure out why my .html templates are not being loaded.