Restore template_path parameter

Seemed to have been lost in the refactoring