Controllers

Events

Router

class kiss.controllers.router.Router(options)

Router implements unique hierarhical url mapping. Pass dictionary with mapping of regex and controller.

Core

class kiss.controllers.core.Controller

Base class of all controllers.

Page

class kiss.controllers.page.PageController(page, context={})

If you need just to show page, create PageController and pass to it your page and optional context. Use it like another controllers in urls settings of your app.

Rest

class kiss.controllers.rest.RestController(model, id_regex='(?P<id>\d+)')

Controller that creates REST API to your model. Pass model class to it and use url property and controller property in your urls settings.

Auth