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 {
border: 1px solid #aaa;
-moz-border-radius: 10px;
}
- p, h1, h2, a {
+ p, h1, h2 {
margin-left: 20px;
margin-right: 20px;
font-family: verdana, tahoma, sans-serif;
}
+ a {
+ font-family: verdana, tahoma, sans-serif;
+ }
:link, :visited {
text-decoration: none;
color: #b00;
border-bottom: 1px dotted #bbb;
}
:link:hover, :visited:hover {
- background-color: #fff;
color: #555;
}
div#topbar {
<body>
<div id="content">
<div id="topbar">
- <h1>$name on Catalyst $VERSION</h1>
+ <h1>$name on <a href="http://catalyst.perl.org">Catalyst</a>
+ $VERSION</h1>
</div>
<div id="answers">
<p>Welcome to the wonderful world of Catalyst.
We do, however, provide you with a few starting points.</p>
<p>If you want to jump right into web development with Catalyst
you might want to check out the documentation.</p>
- <pre><code>perldoc<a href="http://cpansearch.perl.org/dist/Catalyst/lib/Catalyst/Manual.pod">Catalyst::Manual</a>
-perldoc<a href="http://cpansearch.perl.org/dist/Catalyst/lib/Catalyst/Manual/Intro.pod">Catalyst::Manual::Intro</a></code></pre>
+ <pre><code>perldoc <a href="http://cpansearch.perl.org/dist/Catalyst/lib/Catalyst/Manual.pod">Catalyst::Manual</a>
+perldoc <a href="http://cpansearch.perl.org/dist/Catalyst/lib/Catalyst/Manual/Intro.pod">Catalyst::Manual::Intro</a></code></pre>
<p>If you would like some background information on the
MVC-pattern, these links might be of help to you.</p>
<ul>
<a href="http://lists.rawmode.org/mailman/listinfo/catalyst">Mailing-List</a>
</li>
<li>
- <a href="irc://irc.perl.org/catalyst">IRC channel</a>
+ <a href="irc://irc.perl.org/catalyst">IRC channel #catalyst on irc.perl.org</a>
</li>
</ul>
<h2>In conclusion</h2>
- <p>The Catalyst team hope you will enjoy using Catalyst as much
+ <p>The Catalyst team hope you will enjoy using Catalyst as much
as we enjoyed making it, and rest assured that any and all
- feedback is welcomed</p>
+ feedback is welcomed.</p>
<p class="signature">-- #1. the first rule of the Cabal is, you do not
talk about the Cabal.<br/>
#2. the second rule of the Cabal is, you DO NOT
- talkk about the Cabal.</p>
+ talk about the Cabal.</p>
</div>
</div>
</body>