def strip_site_theme_templates_path(uri):
 theme = get_current_theme()
 if (not theme):
  return uri
 templates_path = '/'.join([theme.theme_dir_name, get_project_root_name(), 'templates'])
 uri = re.sub((('^/*' + templates_path) + '/*'), '', uri)
 return uri

def strip_site_theme_templates_path ( uri ) : theme = get_current_theme ( ) if ( not theme ) : return uri templates_path = '/' . join ( [ theme . theme_dir_name , get_project_root_name ( ) , 'templates' ] ) uri = re . sub ( ( ( '^/*' + templates_path ) + '/*' ) , '' , uri ) return uri
remove site template theme path from the uri .