Intial work for templating each directive.