add keepExt flag to retain extension of file

Hi, for my app I need to be able to render, say, test.html as /test.html rather than just /test so I added a flag to allow this.