fix(compiler) to support template directives