Angerwhale officially released
Congrats to Jrockway on releasing Angerwhale. Angerwhale is a filesystem-based blog with integrated cryptography, built on the Catalyst framework.
You can get angerwhale on CPAN.
You can get angerwhale on CPAN.
21:17 <bert_> it is for independent artists to be able to easily sell card at
their live shows, and fans use them to dl songs from our site
when they get home...
21:18 <bert_> site went from concept to production in 3 months...
21:18 <bert_> you guys here helped us through the rough part, none of us had
used catalyst before this...
21:18 <bert_> we really appreciate your help
$c->res->body('dude, what's up?');
$c->forward($c->view); # Or just let RenderView handle it
# As is the default.
However, sometimes this is not practical for your purpose. Maybe you
need to serve a streaming mp3, or you have a big file that you don't want
to load into memory all at once... Fixing this is just as easy, tho.
my $fh=io('/tmp/bigfile');
$c->res->body($fh);
and presto, Catalyst will serve the response from the filehandle. Of course
you will have to tell catalyst how much data you expect $fh to contain
since the headers are written before the response body.
$c->res->content_length(-s $file)Would be a simple example of how to do that.
[%USE Math %] [%SET tip=Math.int(Math.rand(10))+1%]This assigns a number from 1 to 10 to the TT tip variable. Now it's just a simple matter of using a TT switch:
[% SWITCH tip %] [% CASE 1 %] You need to floss more often [% CASE 2 %] Don't Panic [% CASE 3 %] ... [% END %]And that's it, really. Hope this comes in handy for someone :)