Updated docs for stash (nothingmuch)
Andy Grundman [Wed, 19 Oct 2005 13:42:44 +0000 (13:42 +0000)]
lib/Catalyst.pm

index aed8d01..ef134b1 100644 (file)
@@ -500,9 +500,17 @@ Contains the return value of the last executed action.
 
 Returns a hashref containing all your data.
 
-    $c->stash->{foo} ||= 'yada';
     print $c->stash->{foo};
 
+Keys may be set in the stash by assigning to the hash reference, or by passing
+either a single hash reference or a list of key/value pairs as arguments.
+
+For example:
+
+    $c->stash->{foo} ||= 'yada';
+    $c->stash( { moose => 'majestic', qux => 0 } );
+    $c->stash( bar => 1, gorch => 2 );
+
 =cut
 
 sub stash {