S
smisk

mvc

Model-View-Controller framework for Smisk. Provides URL routing, template rendering, leaf filters, and a rich Application base class.

Configuration parameters

smisk.mvc.template_dir

Path to the directory containing template files. Relative to the application directory.

smisk.mvc.forks

Number of worker processes to fork. Defaults to 0 (no forking, single process).

Leaf filters

Leaf filters are callables that post-process controller return values before they are serialized and sent to the client. Register them with Application.filters.

Functions

smisk.mvc.main(application_class=None, *args, **kwargs)

Convenience entry point. Instantiates application_class, configures it from command-line arguments, and calls run().

Classes

class smisk.mvc.Application(smisk.core.Application)

The MVC application. Handles URL routing, controller dispatch, template rendering, and response serialization.

service()

Called for each request. Performs routing and dispatches to the appropriate controller leaf.

run()

Start the FastCGI event loop.

Modules