old_contents: 
  #  IATI Data Quality, tools for Data QA on IATI-formatted  publications
  #  by Mark Brough, Martin Keegan, Ben Webb and Jennifer Smith
  #
  #  Copyright (C) 2013  Publish What You Fund
  #
  #  This programme is free software; you may redistribute and/or modify
  #  it under the terms of the GNU Affero General Public License v3.0
  
  from flask import Flask, render_template, flash, request, Markup, \
      session, redirect, url_for, escape, Response, abort, send_file
  from flask.ext.login import current_user
  
  from iatidataquality import app
  from iatidataquality import db
  import usermanagement
  import markdown
  import os
  
  @app.route("/")
  def home():
      return render_template("dashboard.html",
               admin=usermanagement.check_perms('admin'),
               loggedinuser=current_user)
  
  @app.errorhandler(404)
  def page_not_found(error):
      return render_template('404.html',
               admin=usermanagement.check_perms('admin'),
               loggedinuser=current_user), 404
  
  @app.errorhandler(500)
  def internal_server_error(e):
      return render_template('500.html', error=e, 
               admin=usermanagement.check_perms('admin'),
               loggedinuser=current_user), 500
  
  @app.route('/info/data_quality')
  def about_dq():
      return render_template("about_dq.html", loggedinuser=current_user)
  
  @app.route('/info/survey')
  def about_survey():
      return render_template("about_survey.html", loggedinuser=current_user)
  
  def render_markdown(filename):
      path = os.path.join(os.path.dirname(__file__), 'docs', filename)
      with file(path) as f:
          plaintext = f.read()
          def _wrapped():
              content = Markup(markdown.markdown(plaintext))
              loggedinuser = current_user
              return render_template('about_generic.html', **locals())
          return _wrapped()
  
  @app.route('/info/test/')
  def about_test():
      return render_markdown('test1.md')
  
  @app.route('/info/datacol')
  def about_data_collection():
      return render_markdown('2013_data_collection_guide.md')
  
  @app.route('/info/independent')
  def about_independent():
      return render_markdown('independent_guide.md')
  
  @app.route('/info/donor')
  def about_donor():
      return render_markdown('donor_guide.md')
  
  
  
new_contents: 
  #  IATI Data Quality, tools for Data QA on IATI-formatted  publications
  #  by Mark Brough, Martin Keegan, Ben Webb and Jennifer Smith
  #
  #  Copyright (C) 2013  Publish What You Fund
  #
  #  This programme is free software; you may redistribute and/or modify
  #  it under the terms of the GNU Affero General Public License v3.0
  
  from flask import Flask, render_template, flash, request, Markup, \
      session, redirect, url_for, escape, Response, abort, send_file
  from flask.ext.login import current_user
  
  from iatidataquality import app
  from iatidataquality import db
  import usermanagement
  import markdown
  import os
  
  @app.route("/")
  def home():
      return render_template("dashboard.html",
               admin=usermanagement.check_perms('admin'),
               loggedinuser=current_user)
  
  @app.errorhandler(404)
  def page_not_found(error):
      return render_template('404.html',
               admin=usermanagement.check_perms('admin'),
               loggedinuser=current_user), 404
  
  @app.errorhandler(500)
  def internal_server_error(e):
      return render_template('500.html', error=e, 
               admin=usermanagement.check_perms('admin'),
               loggedinuser=current_user), 500
  
  @app.route('/about/')
  def about():
      return render_template("about.html", 
                             loggedinuser=current_user, 
                             admin=usermanagement.check_perms('admin'))
  
  def render_markdown(filename):
      path = os.path.join(os.path.dirname(__file__), 'docs', filename)
      with file(path) as f:
          plaintext = f.read()
          def _wrapped():
              content = Markup(markdown.markdown(plaintext))
              loggedinuser = current_user
              return render_template('about_generic.html', **locals())
          return _wrapped()
  
  @app.route('/info/test/')
  def about_test():
      return render_markdown('test1.md')
  
  @app.route('/info/datacol')
  def about_data_collection():
      return render_markdown('2013_data_collection_guide.md')
  
  @app.route('/info/independent')
  def about_independent():
      return render_markdown('independent_guide.md')
  
  @app.route('/info/donor')
  def about_donor():
      return render_markdown('donor_guide.md')
  
  
  
subject: Combine about pages, rename