--- trunk/lib/Frey/Web.pm 2008/12/24 21:32:14 892 +++ trunk/lib/Frey/Web.pm 2009/01/02 13:22:13 908 @@ -187,14 +187,14 @@ my ( $package, $path, $line ) = caller(1); - if ( $content =~ m{\.(js|css)} ) { - $content = "/$content" if -e $content; - if ( $content =~ $re_html ) { - $head = qq| - $content - - |; - } elsif ( $what eq 'js' ) { + $content = "/$content" if -e $content; + if ( $content =~ $re_html ) { + $head = qq| + $content + + |; + } elsif ( $content =~ m{^(/|https?://)} ) { + if ( $what eq 'js' ) { $head = qq| <$tag type="$type" src="$content"> /* $what via $package at $path line $line */