Annotations
@PixieApp
: Class annotation that must be added to any class that is a PixieApp.Arguments: None
Example:
from pixiedust.display.app import * @PixieApp class MyApp(): pass
@route
: Method annotation required to denote that a method—which can have any name—is associated with a route.Arguments:
**kwargs
. Keyword arguments (key-value pairs) representing the route definition. The PixieApp dispatcher will match the current kernel request with a route according to the following rules:- The route with the highest number of arguments get evaluated first.
- All arguments must match for a route to be selected. Argument values can use
*
to denote that any value will match. - If a route is not found, then the default route (the one with no argument) is selected.
- Each key of the route argument can be either a transient state (defined by the
pd_options
attribute) or persisted (field of the PixieApp class that remains present until explicitly changed). - The method can have any number of...