front.app_maker¶
-
class
front.app_maker.
AppMaker
(spec_maker_factory: Callable, element_tree_maker_factory: Callable = <class 'front.elements.tree_maker_base.ElementTreeMaker'>)[source]¶ Main class of front, doing the following: 1. Consume the configuration (short language) to produce a specification object (long language) using the provided spec maker. The specification is a nested structure which contains 3 sub-specification objects: “obj”, “rendering” and “app”. 2. Transform the input objects using the “trans” function from the “obj” specification (uses front.util.dflt_trans by default). 3. Build a composite tree of Front elements based on the “rendering” specification. 4. Build an app from the composite tree and “app” specification.
-
mk_app
(objs: Iterable[Any], config: Union[None, Mapping, Callable[], Mapping]] = None, convention: Union[None, Mapping, Callable[], Mapping]] = None) → Callable[source]¶ Entry point of the AppMaker class to make a Front application.
- Parameters
objs – The objects that the user of the resulting application will be interacting with.
config – The configuration of the resulting application.
convention – The convention used to complete the configuration by providing default values for everything that is not specified in the configuration.
-