old_contents: #!/usr/bin/env python
  
  import app_config
  import json
  import oauth
  import os
  import static
  
  from flask import Flask, make_response, render_template
  from oauth import oauth_required
  from render_utils import make_context, smarty_filter, urlencode_filter
  from werkzeug.debug import DebuggedApplication
  
  app = Flask(__name__)
  app.debug = app_config.DEBUG
  
  app.add_template_filter(smarty_filter, name='smarty')
  app.add_template_filter(urlencode_filter, name='urlencode')
  
  # Example application views
  @app.route('/')
  @oauth_required
  def index():
      """
      Example view demonstrating rendering a simple HTML page.
      """
      context = make_context()
  
      with open('data/featured.json') as f:
          context['featured'] = json.load(f)
  
      return render_template('index.html', **context)
  
  @app.route('/comments/')
  def comments():
      """
      Full-page comments view.
      """
      return render_template('comments.html', **make_context())
  
  @app.route('/widget.html')
  def widget():
      """
      Embeddable widget example page.
      """
      return render_template('widget.html', **make_context())
  
  @app.route('/test_widget.html')
  def test_widget():
      """
      Example page displaying widget at different embed sizes.
      """
      return render_template('test_widget.html', **make_context())
  
  app.register_blueprint(static.static)
  app.register_blueprint(oauth.oauth)
  
  # Enable Werkzeug debug pages
  if app_config.DEBUG:
      wsgi_app = DebuggedApplication(app, evalex=False)
  else:
      wsgi_app = app
  
  # Catch attempts to run the app directly
  if __name__ == '__main__':
      print 'This command has been removed! Please run "fab app" instead!'
  
new_contents: #!/usr/bin/env python
  """
  Example application views.
  
  Note that `render_template` is wrapped with `make_response` in all application
  routes. While not necessary for most Flask apps, it it required in the
  App Template for static publishing.
  """
  
  import app_config
  import json
  import oauth
  import os
  import static
  
  from flask import Flask, make_response, render_template
  from oauth import oauth_required
  from render_utils import make_context, smarty_filter, urlencode_filter
  from werkzeug.debug import DebuggedApplication
  
  app = Flask(__name__)
  app.debug = app_config.DEBUG
  
  app.add_template_filter(smarty_filter, name='smarty')
  app.add_template_filter(urlencode_filter, name='urlencode')
  
  @app.route('/')
  @oauth_required
  def index():
      """
      Example view demonstrating rendering a simple HTML page.
      """
      context = make_context()
  
      with open('data/featured.json') as f:
          context['featured'] = json.load(f)
  
      return make_response(render_template('index.html', **context))
  
  @app.route('/comments/')
  def comments():
      """
      Full-page comments view.
      """
      return make_response(render_template('comments.html', **make_context()))
  
  @app.route('/widget.html')
  def widget():
      """
      Embeddable widget example page.
      """
      return render_template('widget.html', **make_context())
  
  @app.route('/test_widget.html')
  def test_widget():
      """
      Example page displaying widget at different embed sizes.
      """
      return make_response(render_template('test_widget.html', **make_context()))
  
  app.register_blueprint(static.static)
  app.register_blueprint(oauth.oauth)
  
  # Enable Werkzeug debug pages
  if app_config.DEBUG:
      wsgi_app = DebuggedApplication(app, evalex=False)
  else:
      wsgi_app = app
  
  # Catch attempts to run the app directly
  if __name__ == '__main__':
      print 'This command has been removed! Please run "fab app" instead!'
  
subject: add note about make_response in app.py