
import webapp2
import jinja2
import os

jinja_environment = jinja2.Environment(
    loader=jinja2.FileSystemLoader(os.path.dirname(__file__)))

class MainHandler(webapp2.RequestHandler):
    def get(self):
        template= jinja_environment.get_template(
            'templates/moves.html')
        self.response.write(template.render())

class FashionHandler(webapp2.RequestHandler):
    def get(self):
        template= jinja_environment.get_template(
            'templates/fashion.html')
        self.response.write(template.render())

class CasualHandler(webapp2.RequestHandler):
    def get(self):
        template=jinja_environment.get_template(
            'templates/casual.html')
        self.response.write(template.render())

class FitnessHandler(webapp2.RequestHandler):
    def get(self):
        template=jinja_environment.get_template(
            'templates/fitness.html')
        self.response.write(template.render())

class FormalHandler(webapp2.RequestHandler):
    def get(self):
        template=jinja_environment.get_template(
            'templates/formal.html')
        self.response.write(template.render())

class FoodHandler(webapp2.RequestHandler):
    def get(self):
        template= jinja_environment.get_template(
            'templates/food2.html')
        self.response.write(template.render())

class EventsHandler(webapp2.RequestHandler):
    def get(self):
        template= jinja_environment.get_template(
            'templates/events.html')
        self.response.write(template.render())

class ConcertsHandler(webapp2.RequestHandler):
    def get(self):
        template = jinja_environment.get_template('templates/concerts.html')
        self.response.write(template.render())
class SportsHandler(webapp2.RequestHandler):
    def get(self):
        template = jinja_environment.get_template('templates/sports.html')
        self.response.write(template.render())
class MoviesHandler(webapp2.RequestHandler):
    def get(self):
        template = jinja_environment.get_template('templates/movies.html')
        self.response.write(template.render())

class TabHandler(webapp2.RequestHandler):
    def get(self):
        template= jinja_environment.get_template('templates/tab1.html')
        self.response.write(template.render())

class BostonHandler(webapp2.RequestHandler):
    def get(self):
        template= jinja_environment.get_template('templates/boston.html')
        self.response.write(template.render())

class DessertHandler(webapp2.RequestHandler):
    def get(self):
        template= jinja_environment.get_template('templates/dessert.html')
        self.response.write(template.render())

app = webapp2.WSGIApplication([
    ('/', MainHandler),
    ('/fashion.html', FashionHandler),
    ('/food', FoodHandler),
    ('/concerts.html', ConcertsHandler),
    ('/sports.html', SportsHandler),
    ('/movies.html', MoviesHandler),
    ('/events.html', EventsHandler),
    ('/casual.html', CasualHandler),
    ('/fitness.html', FitnessHandler),
    ('/formal.html', FormalHandler),
    ('/templates/tab1.html', TabHandler),
    ('/templates/boston.html',BostonHandler),
    ('/templates/dessert.html',DessertHandler),
], debug=True)
