Plugin CSS and JS included file fix

This commit is contained in:
Oliver Gorwits
2013-12-08 21:47:35 +00:00
parent f50261cebb
commit 1a53458464
3 changed files with 13 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2.020001 - 2013-12-08
[BUG FIXES]
* Plugin CSS and JS included file fix
2.020000 - 2013-12-08 2.020000 - 2013-12-08
[NEW FEATURES] [NEW FEATURES]

View File

@@ -7,7 +7,7 @@ get '/plugin/*/*.js' => sub {
my ($plugin) = splat; my ($plugin) = splat;
my $content = template my $content = template
"plugin/$plugin/$plugin.js", {}, 'plugin.tt', { target => "plugin/$plugin/$plugin.js" },
{ layout => undef }; { layout => undef };
send_file \$content, send_file \$content,
@@ -19,7 +19,7 @@ get '/plugin/*/*.css' => sub {
my ($plugin) = splat; my ($plugin) = splat;
my $content = template my $content = template
"plugin/$plugin/$plugin.css", {}, 'plugin.tt', { target => "plugin/$plugin/$plugin.css" },
{ layout => undef }; { layout => undef };
send_file \$content, send_file \$content,

View File

@@ -0,0 +1,5 @@
[% TRY %]
[% INCLUDE $target %]
[% CATCH %]
<!-- dummy content required by Template Toolkit TRY -->
[% END %]