fix(compiler) to support template directives

same.