Add directives and default template.