Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (17 sloc) 0.621 kB
import os
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp import util
class MinimizerHandler(webapp.RequestHandler):
def get(self):
path = os.path.join(os.path.dirname(__file__), 'html', 'minimizer.html')
self.response.headers['Content-Type'] = 'text/html; charset=utf-8';
self.response.out.write(template.render(path, {
}))
def main():
application = webapp.WSGIApplication([
('/.*', MinimizerHandler),
], debug=True)
util.run_wsgi_app(application)
if __name__ == '__main__':
main()
Jump to Line
Something went wrong with that request. Please try again.