def load_properties(page_info):
 import re
 if (not page_info.title):
  page_info.title = extract_title(page_info.source, page_info.name)
 if (page_info.title and (not (u'{% block title %}' in page_info.source))):
  page_info.source += u'\n{% block title %}{{ title }}{% endblock %}'
 if (u'<!-- no-breadcrumbs -->' in page_info.source):
  page_info.no_breadcrumbs = 1
 if (u'<!-- show-sidebar -->' in page_info.source):
  page_info.show_sidebar = 1
 if (u'<!-- no-header -->' in page_info.source):
  page_info.no_header = 1
 elif ((not (u'{% block header %}' in page_info.source)) and (not (u'<h1' in page_info.source))):
  page_info.source += u'\n{% block header %}<h1>{{ title }}</h1>{% endblock %}'
 if (u'<!-- no-cache -->' in page_info.source):
  page_info.no_cache = 1
 if (u'<!-- no-sitemap -->' in page_info.source):
  page_info.no_cache = 1

def load_properties ( page_info ) : import re if ( not page_info . title ) : page_info . title = extract_title ( page_info . source , page_info . name ) if ( page_info . title and ( not ( u'{% block title %}' in page_info . source ) ) ) : page_info . source += u'\n{% block title %}{{ title }}{% endblock %}' if ( u'<!-- no-breadcrumbs -->' in page_info . source ) : page_info . no_breadcrumbs = 1 if ( u'<!-- show-sidebar -->' in page_info . source ) : page_info . show_sidebar = 1 if ( u'<!-- no-header -->' in page_info . source ) : page_info . no_header = 1 elif ( ( not ( u'{% block header %}' in page_info . source ) ) and ( not ( u'<h1' in page_info . source ) ) ) : page_info . source += u'\n{% block header %}<h1>{{ title }}</h1>{% endblock %}' if ( u'<!-- no-cache -->' in page_info . source ) : page_info . no_cache = 1 if ( u'<!-- no-sitemap -->' in page_info . source ) : page_info . no_cache = 1
load properties like no_cache .