Got templating working