%doc changed to %template