old_contents: import imp
  import os
  import StringIO
  
  """
  Google doc configuration. If not provided, no Google doc will be used.
  
  See secrets.py to configure access.
  """
  
  GOOGLE_DOC = {
      'key': '0Ak3IIavLYTovdGRrdjBwbS1Gd3R4TEZoQXQtQk1fMnc',
  }
  
  """
  Set default context. These variables will be globally available to the template.
  """
  DEFAULT_CONTEXT = {
      'title': 'Tarbell Readme',
  }
  
  DOCS = ['install', 'create', 'build', 'deploy', 'reference',]
  
  """
  Root URL project will appear at (e.g. http://mydomain.tld/)
  """
  # URL_ROOT = 'readme'
  
  """
  Don't render to static HTML.
  """
  # DONT_PUBLISH = False
  
  """
  Don't create JSON for project (default: true)
  """
  # CREATE_JSON = False
  
  """
  Uncomment the following lines to provide this configuration file as a Flask
  blueprint.
  """
  from flask import Blueprint
  blueprint = Blueprint('readme', __name__)
  
  def get_doc(file):
      try:
          path = os.path.join(os.path.dirname(__file__), 'docs', '%s.md' % file)
          return open(path, 'r').read()
      except IOError:
          return None
  
  
  @blueprint.app_context_processor
  def context_processor():
      """ Readme context processor. Get docs from docs dir."""
      sections = []
      for doc in DOCS:
          content = get_doc(doc)
          lines = content.split("\n")
          doc = {
              'id': doc,
              'title': lines[0].replace("#", "").strip(),
              'description': "\n".join(lines[1:3]),
              'body': content,
          }
          sections.append(doc)
      print sections
      return {'sections': sections}
  
  
  """
  Load secrets. This is goofy but it works, and `import secrets` sadly doesn't.
  
  Don't change this unless you know what you're doing.
  """
  def get_secrets():
      """ Return a secrets module """
      root = os.path.dirname(os.path.abspath(__file__))
      return imp.find_module('secrets', [root])
  
  secrets = imp.load_module('secrets', *get_secrets())
  
  if hasattr(secrets, 'GOOGLE_AUTH'):
      GOOGLE_DOC.update(secrets.GOOGLE_AUTH)
  
  
  
new_contents: import imp
  import os
  import StringIO
  
  """
  Google doc configuration. If not provided, no Google doc will be used.
  
  See secrets.py to configure access.
  """
  
  GOOGLE_DOC = {
      'key': '0Ak3IIavLYTovdGRrdjBwbS1Gd3R4TEZoQXQtQk1fMnc',
  }
  
  """
  Set default context. These variables will be globally available to the template.
  """
  DEFAULT_CONTEXT = {
      'title': 'Tarbell Readme',
  }
  
  DOCS = ['install', 'create', 'build', 'deploy', 'reference',]
  
  """
  Root URL project will appear at (e.g. http://mydomain.tld/)
  """
  # URL_ROOT = 'readme'
  
  """
  Don't render to static HTML.
  """
  # DONT_PUBLISH = False
  
  """
  Don't create JSON for project (default: true)
  """
  # CREATE_JSON = False
  
  """
  Uncomment the following lines to provide this configuration file as a Flask
  blueprint.
  """
  from flask import Blueprint
  blueprint = Blueprint('readme', __name__)
  
  def get_doc(file):
      try:
          path = os.path.join(os.path.dirname(__file__), 'docs', '%s.md' % file)
          return open(path, 'r').read()
      except IOError:
          return None
  
  
  @blueprint.app_context_processor
  def context_processor():
      """ Readme context processor. Get docs from docs dir."""
      sections = []
      for doc in DOCS:
          content = get_doc(doc)
          lines = content.split("\n")
          doc = {
              'id': doc,
              'title': lines[0].replace("#", "").strip(),
              'description': "\n".join(lines[1:3]),
              'body': content,
          }
          sections.append(doc)
      return {'sections': sections}
  
  
  """
  Load secrets. This is goofy but it works, and `import secrets` sadly doesn't.
  
  Don't change this unless you know what you're doing.
  """
  def get_secrets():
      """ Return a secrets module """
      root = os.path.dirname(os.path.abspath(__file__))
      return imp.find_module('secrets', [root])
  
  secrets = imp.load_module('secrets', *get_secrets())
  
  if hasattr(secrets, 'GOOGLE_AUTH'):
      GOOGLE_DOC.update(secrets.GOOGLE_AUTH)
  
  
  
subject: drop stray print statement