original_docstring: Load properties like no_cache, title from source html
docstring: Load properties like no_cache, title from source html
docstring_tokens: Load properties like no_cache title from source html
code: def load_properties_from_source(page_info):
  	'''Load properties like no_cache, title from source html'''
  
  	if not page_info.title:
  		page_info.title = extract_title(page_info.source, page_info.route)
  
  	base_template = extract_comment_tag(page_info.source, 'base_template')
  	if base_template:
  		page_info.base_template = base_template
  
  	if page_info.base_template:
  		page_info.source = '''{{% extends "{0}" %}}
  			{{% block page_content %}}{1}{{% endblock %}}'''.format(page_info.base_template, page_info.source)
  		page_info.no_cache = 1
  
  	if "<!-- no-breadcrumbs -->" in page_info.source:
  		page_info.no_breadcrumbs = 1
  
  	if "<!-- show-sidebar -->" in page_info.source:
  		page_info.show_sidebar = 1
  
  	if "<!-- add-breadcrumbs -->" in page_info.source:
  		page_info.add_breadcrumbs = 1
  
  	if "<!-- no-header -->" in page_info.source:
  		page_info.no_header = 1
  
  	if "<!-- add-next-prev-links -->" in page_info.source:
  		page_info.add_next_prev_links = 1
  
  	if "<!-- no-cache -->" in page_info.source:
  		page_info.no_cache = 1
  
  	if "<!-- no-sitemap -->" in page_info.source:
  		page_info.sitemap = 0
  
  	if "<!-- sitemap -->" in page_info.source:
  		page_info.sitemap = 1
code_tokens: def load_properties_from_source ( page_info ) : if not page_info . title : page_info . title = extract_title ( page_info . source , page_info . route ) base_template = extract_comment_tag ( page_info . source , 'base_template' ) if base_template : page_info . base_template = base_template if page_info . base_template : page_info . source = '''{{% extends "{0}" %}}
  			{{% block page_content %}}{1}{{% endblock %}}''' . format ( page_info . base_template , page_info . source ) page_info . no_cache = 1 if "<!-- no-breadcrumbs -->" in page_info . source : page_info . no_breadcrumbs = 1 if "<!-- show-sidebar -->" in page_info . source : page_info . show_sidebar = 1 if "<!-- add-breadcrumbs -->" in page_info . source : page_info . add_breadcrumbs = 1 if "<!-- no-header -->" in page_info . source : page_info . no_header = 1 if "<!-- add-next-prev-links -->" in page_info . source : page_info . add_next_prev_links = 1 if "<!-- no-cache -->" in page_info . source : page_info . no_cache = 1 if "<!-- no-sitemap -->" in page_info . source : page_info . sitemap = 0 if "<!-- sitemap -->" in page_info . source : page_info . sitemap = 1
short_docstring: Load properties like no_cache, title from source html
short_docstring_tokens: Load properties like no_cache title from source html
comment: '''Load properties like no_cache, title from source html'''