Returns uri with its extension updated to _templateExtension.
uri
_templateExtension
String? toTemplateExtension(String? uri) => _toExtension(uri, _allExtensions, _templateExtension);