Configure default template directory
Add hooks