@Template replaces @Decorator

replaces #861

TODO:
- [x] Update the transformers
- [x] Add some `@Template` tests in annotation_src_spec