add locals to template tags