Add convenience @template decorator.