Allow template to be callable for dynamic templates based on the element