Permalink
Browse files

Added additional Perl modules path configuration

  • Loading branch information...
1 parent 8195b0b commit 7e546d160f064ad9e06845af111137d8ab0641d8 @vti committed Jan 13, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 pastelicious
View
@@ -18,6 +18,15 @@ $config =
{%$config, %{$json->decode(_slurp_file("${\(basename $0)}.conf")) || {}}};
die $json->error if !$config && $json->error;
+# Additional Perl modules
+if ($config->{perl5lib}) {
+ unshift @INC, $_
+ for (
+ ref $config->{perl5lib} eq 'ARRAY'
+ ? @{$config->{perl5lib}}
+ : $config->{perl5lib});
+}
+
app->renderer->types->type(html => 'text/html; charset=utf-8');
app->renderer->add_helper(get_last_pastes => sub { _get_last_pastes($_[0]); }
);

0 comments on commit 7e546d1

Please sign in to comment.