Make 'template_ext' config parameter work with render_opt(), too.
Merge pull request #205 from shadlaws/template_ext_opt

Make 'template_ext' config parameter work with render_opt(), too.