Allow template to come from callback