Create a directive restricted to element name and a template to output