Skip to content
DavisDevelopment edited this page Dec 30, 2014 · 2 revisions

class tannus.Application

This class is used for multi-page code-delegation, via it's route method.


Instance Methods

function route(url : String, ?handler : Dynamic, ?pageClass : Class<Page>)

@param url - a route description in the form of a string
@param handler - a function to run when the created route is activated, if provided
@param pageClass - a custom page class to use for the page(s) as described by url