X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FView.pm;h=40ed7241b2c7776ffaea60e4a6fc3d9bc02905da;hb=059c085bfcead450e70ace9ef193aa99ac2ab37d;hp=d9e884fa21290b3ac058405e004a9ed9e1635b12;hpb=76ddf86be66ed259d24226618a1d357e6f606fa1;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/View.pm b/lib/Catalyst/View.pm index d9e884f..40ed724 100644 --- a/lib/Catalyst/View.pm +++ b/lib/Catalyst/View.pm @@ -32,6 +32,26 @@ action's private name. (See L.) Implements the same methods as other Catalyst components, see L +=head2 process + +gives an error message about direct use. + +=cut + +sub process { + + Catalyst::Exception->throw( message => ( ref $_[0] || $_[0] ). + " directly inherits from Catalyst::View. You need to\n". + " inherit from a subclass like Catalyst::View::TT instead.\n" ); + +} + +=head2 $c->merge_hash_config( $hashref, $hashref ) + +Merges two hashes together recursively, giving right-hand precedence. + +=cut + =head1 AUTHOR Sebastian Riedel, C