Setting up template tree and routes