fix(compiler) to support template directives

added