Setting up templating.