Auto parsing directives when inside a template.