Plugin CSS and JS included file fix
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
5
Netdisco/share/views/plugin.tt
Normal file
5
Netdisco/share/views/plugin.tt
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
[% TRY %]
|
||||||
|
[% INCLUDE $target %]
|
||||||
|
[% CATCH %]
|
||||||
|
<!-- dummy content required by Template Toolkit TRY -->
|
||||||
|
[% END %]
|
||||||
Reference in New Issue
Block a user