X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=blobdiff_plain;f=lib%2FMaypole%2FConfig.pm;h=c4843b7a4287b58d175f74e72d733cca217c977f;hp=54f2c1ee8eaeea526c4c4144fde66092d780ec18;hb=5a4a5fc4916a1efde5e792d3d04e465fb83aeabf;hpb=8a3b8fb863a23a2d82b8667a89a39e4deab33f75 diff --git a/lib/Maypole/Config.pm b/lib/Maypole/Config.pm index 54f2c1e..c4843b7 100644 --- a/lib/Maypole/Config.pm +++ b/lib/Maypole/Config.pm @@ -8,15 +8,11 @@ use warnings; # 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 document_encoding - content_type models) + rows_per_page dsn user pass opts application_name) ); # Should only be modified by model. -__PACKAGE__->mk_ro_accessors( - qw( classes tables table_to_class - ) -); +__PACKAGE__->mk_ro_accessors(qw( classes tables table_to_class)); 1; @@ -32,6 +28,10 @@ This class stores all configuration data for your Maypole application. =head2 View related +=head3 application_name + +This should be a string containing you applications name. + =head3 view The view class for your Maypole Application. Defaults to "Maypole::View::TT" @@ -41,6 +41,14 @@ The view class for your Maypole Application. Defaults to "Maypole::View::TT" This is the uri base that should be appended to your application when maypole makes urls. +=head3 tables + +Contains a list of all tables, if supported by model. + +=head3 table_to_class + +A hash containing a table to class mapping, if supported by model. + =head3 template_root This is where your application can find it's templates.