martini-contrib / render

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

Fix the process of retrieving an extension of a file path. #26

Closed yosssi closed 10 years ago

yosssi commented 10 years ago

Add a function which retrieves an extension of a file path because filepath.Ext returns the suffix beginning at the final dot in the final element of path and we can not retrieve the extension of foo.go.html correctly (We want to retrieve .go.html as the extension but filepath.Ext returns .html). #14

codegangsta commented 10 years ago

Nice addition. Landing.

yosssi commented 10 years ago

Thanks for merging.