original_docstring: Extend the content with appropriate base template if required.
  
  	For easy composition, the users will only add the content of the page,
  	not its template. But if the user has explicitly put Jinja blocks, or <body> tags,
  	or comment tags like <!-- base_template: [path] -->
  	then the system will not try and put it inside the "web.template"
  	
docstring: Extend the content with appropriate base template if required.
  For easy composition, the users will only add the content of the page,
  not its template. But if the user has explicitly put Jinja blocks, or  tags,
  or comment tags like 
  then the system will not try and put it inside the "web.template"
docstring_tokens: Extend the content with appropriate base template if required . For easy composition the users will only add the content of the page not its template . But if the user has explicitly put Jinja blocks or tags or comment tags like then the system will not try and put it inside the " web . template "
code: def extend_from_base_template(page_info, source):
  	'''Extend the content with appropriate base template if required.
  
  	For easy composition, the users will only add the content of the page,
  	not its template. But if the user has explicitly put Jinja blocks, or <body> tags,
  	or comment tags like <!-- base_template: [path] -->
  	then the system will not try and put it inside the "web.template"
  	'''
  
  	if (('</body>' not in source) and ('{% block' not in source)
  		and ('<!-- base_template:' not in source)) and 'base_template' not in page_info:
  		page_info.only_content = True
  		source = '''{% extends "templates/web.html" %}
  			{% block page_content %}\n''' + source + '\n{% endblock %}'
  
  	return source
code_tokens: def extend_from_base_template ( page_info , source ) : if ( ( '</body>' not in source ) and ( '{% block' not in source ) and ( '<!-- base_template:' not in source ) ) and 'base_template' not in page_info : page_info . only_content = True source = '''{% extends "templates/web.html" %}
  			{% block page_content %}\n''' + source + '\n{% endblock %}' return source
short_docstring: Extend the content with appropriate base template if required.
short_docstring_tokens: Extend the content with appropriate base template if required .
comment: '''Extend the content with appropriate base template if required.
  
  	For easy composition, the users will only add the content of the page,
  	not its template. But if the user has explicitly put Jinja blocks, or <body> tags,
  	or comment tags like <!-- base_template: [path] -->
  	then the system will not try and put it inside the "web.template"
  	'''