Albatross only supplies one class for this function; the ResourceMixin class. This mixin manages application resources which which do not change regardless of context. The resources managed are tag classes, HTML macros, and HTML lookup tables.
The SimpleContext execution context class subclasses the ResourceMixin class. During the constructor it registers all of the standard Albatross tags. As HTML templates are executed the macros and lookup tables in those templates are registered.
All standard Albatross application classes inherit from the Application class which in turn subclasses the ResourceMixin class. During the application class constructor all of the standard Albatross tags are registered. The AppContext class which is subclassed by all Albatross application execution context classes proxies all HTML macro and lookup table methods and directs them to the application object.
) |
name) |
None
is returned.
name, macro) |
name) |
None
is
returned.
name, lookup) |
name) |
None
is returned.
...) |