X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FConfig.pm;fp=lib%2FMaypole%2FConfig.pm;h=2cf65daba17eca9111aa0e7ff1cdd0e515ab11bf;hb=427f0f2ec634f60fa90e60f5d3a048b6e1fc5f8b;hp=a2660d78c9f999176ecb667f3b610da19ac83aec;hpb=d4c604cd340f311044ce23c73c4321bf49553b36;p=maypole.git diff --git a/lib/Maypole/Config.pm b/lib/Maypole/Config.pm index a2660d7..2cf65da 100644 --- a/lib/Maypole/Config.pm +++ b/lib/Maypole/Config.pm @@ -11,7 +11,7 @@ our $VERSION = "1." . sprintf "%04d", q$Rev$ =~ /: (\d+)/; __PACKAGE__->mk_accessors( 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) + application_name additional) ); # Should only be modified by model. @@ -117,6 +117,11 @@ Username to log into the database with. =head2 Adding additional configuration data +You can use the 'additional' attribute for stashing additional info, especially from additional_data method, +i.e. $r->config->additional({foo=>bar}); + +Or.. + If your modules need to store additional configuration data for their own use or to make available to templates, add a line like this to your module: