|
CGI::WeT::Theme - Theme loader for the CGI::WeT package |
CGI::WeT::Theme - Theme loader for the CGI::WeT package
use CGI::WeT::Theme ();
This module provides a well-defined interface between the rendering engine and the theme definition loaders. It is designed to work with or without mod_perl. All theme loader classes must be defined in the CGI::WeT::Theme::Loader namespace during the construction of a CGI::WeT::Theme object.
This module is used by the rendering engine and should not be needed outside of that engine. This documentation is to aid those building a theme loader.
All theme loaders need the following method defined:
The object returned by the factory method must provide the following methods:
The object returned by this function must provide LAYOUT and may provide BODY, CSS, and JAVASCRIPT. LAYOUT provides an anonymous array describing the layout of the page. BODY returns a hash reference describing various body attributes. BODY is deprecated in favor of CSS which returns a reference to an array with the Cascading Style Sheet to use for this layout. JAVASCRIPT returns a reference to an array with any JavaScript required for this layout.
|
CGI::WeT::Theme - Theme loader for the CGI::WeT package |