GenieMod::View
The View portion of the controller. One of these is created (via new()) and subsequent views are created via create().
The rationale behind this is, the View may need to store cached templates across requests, and should not be created each time.
A view has at least the methods new(), create() and display()
Although our implementation uses a GenieMod::View::Template() there is no reason one couldn't use any template system desired, in fact, you can use many template systems or NO template systems.
All that is required is to have the new(), create() and display() methods. (and create() can often be an alias for new().)
This is called before creating the view objects, here is where one might cache code or set up data structures for subsequent calls to create()
It expects a Conf paramteter of Config::General::Extended and a ViewMap parameter so it can tell which viewmap created it.
Conf => Config::General::Extended object.
ViewMap => GenieMod::View::Map
This creates a view specifically for the request.
$req - The GenieMod::Request object.
$vn - the view name.
%args - Arguments from the conf file. (up to the ViewMap object how these are found)
Displays the page, should send output to $req->out()
THIS implementation calls Data::Dumper on the paramters.