Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
if ($use_ssi) { my ($include_file, $path, $filename) = $blog->include_path(\%include_recipe); my $fmgr = $blog->file_mgr; if (!$fmgr->exists($path)) { if (!$fmgr->mkpath($path)) { return $ctx->error(MT->translate("Error making path '[_1]': [_2]", $path, $fmgr->errstr)); } } defined($fmgr->put_data($ret, $include_file)) or return $ctx->error(MT->translate("Writing to '[_1]' failed: [_2]", $include_file, $fmgr->errstr)); MT->upload_file_to_sync( url => $blog->include_url(\%include_recipe), file => $include_file, blog => $blog, ); my $stat = $blog->include_statement(\%include_recipe); return $stat; }
This paste will be private.
From the Design Piracy series on my blog: