Got auto templating working