Permalink
Browse files

CDN enable a couple more uses of static

  • Loading branch information...
1 parent 2f871d4 commit 8dee35296ccbdd52dc20f415d086cf94978b704d @obra obra committed May 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Jifty/Web.pm
View
@@ -1240,7 +1240,7 @@ sub include_css {
# if there's no trigger, 0 is returned. if aborted/handled, undef
# is returned.
if ( defined $self->call_trigger( 'include_css', @_ )) {
- $self->out( qq[<link rel="stylesheet" type="text/css" href="/static/css/$_" />\n] )
+ $self->out( qq[<link rel="stylesheet" type="text/css" href="].Jifty->web->static("css/$_").q[" />\n] )
for @{ Jifty->web->css_files };
}
@@ -1310,7 +1310,7 @@ sub include_javascript {
if ( defined $self->call_trigger('include_javascript', @_) ) {
for my $file ( @{ __PACKAGE__->javascript_libs } ) {
$self->out(
- qq[<script type="text/javascript" src="/static/js/$file"></script>\n]
+ qq[<script type="text/javascript" src="].Jifty->web->static("js/$file").qq["></script>\n]
);
}
}

0 comments on commit 8dee352

Please sign in to comment.