Got templating to work