#!/usr/bin/env python

from base import BaseHandler


class HomeHandler(BaseHandler):

    def get(self):
        self.write("This is home page!")

# encoding:utf-8

from base import BaseHandler
from pagination import Paginator


class HomeHandler(BaseHandler):

    def get(self):
        pager = Paginator(self.db, 1)
        # self.write("It's ok")
        com = pager.get_company()
        self.render(
            "home.html", companies=com, paginator=pager)


support pagination