2006-07-28.04:41:00.stuff

I find myself reinventing the wheel often. I think the best way to learn how something works, is to try to make your own version of it, and inevitably fail to produce something as good as what everyone else has done. Which brings me to this little project - reinventing the blog from the ground up. Right now it's as minimal as can be. A basic Catalyst app, pulling files from a directory and munging them together and some bad css I found lying around in a directory. And thus I present to you, the worlds shittiest blog using the power of MVC to do something trivial:
sub frontpage : Local {
    my ($self, $c) = @_;
    my $m = $c->model('Posts');
    my %posts = map { $_ => scalar $m->slurp($_) } $m->list;
    $c->stash->{posts} = \%posts;
    $c->stash->{template} = 'stuff.tt2';
}