fix(compiler): change compiler to support attribute mapping for template decorators

Closes #1581