X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FConfig.pm;h=040a4c8e8baa0975d9a3bffcebca788a57655e01;hb=07f3f8fcee38924da9aa2b78864a61843a4fd84b;hp=6a236c829c8ecf950651cb2ed725472757264125;hpb=9b8f3c269605db27908000957b20cc3a336f9148;p=maypole.git diff --git a/lib/Maypole/Config.pm b/lib/Maypole/Config.pm index 6a236c8..040a4c8 100644 --- a/lib/Maypole/Config.pm +++ b/lib/Maypole/Config.pm @@ -5,12 +5,13 @@ use attributes (); use strict; use warnings; -our $VERSION = "1." . sprintf "%04d", q$Rev$ =~ /: (\d+)/; +our $VERSION = "1." . sprintf "%04d", q$Rev: 334 $ =~ /: (\d+)/; # Public accessors. __PACKAGE__->mk_accessors( - qw( view uri_base template_root model loader display_tables ok_tables - rows_per_page dsn user pass opts application_name) + qw( view view_options uri_base template_root template_extension model + loader display_tables ok_tables rows_per_page dsn user pass opts + application_name) ); # Should only be modified by model. @@ -34,22 +35,29 @@ This class stores all configuration data for your Maypole application. This should be a string containing your application's name. +Optional. Is used in the factory templates. + =head3 rows_per_page This is the number of rows your application should display per page. +Optional. + =head3 tables Contains a list of all tables, if supported by model. +=head3 template_extension + +Optional template file extension. + =head3 template_root This is where your application can find its templates. =head3 uri_base -This is the URI base that should be prepended to your application when -Maypole +This is the URI base that should be prepended to your application when Maypole makes URLs. =head3 view @@ -57,6 +65,11 @@ makes URLs. The name of the view class for your Maypole Application. Defaults to "Maypole::View::TT". +=head3 view_options + +A hash of configuration options for the view class. Consult the documentation +for your chosen view class for information on available configuration options. + =head2 Model-Related =head3 classes