/[Frey]/branches/zimbardo/lib/Frey/Web.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /branches/zimbardo/lib/Frey/Web.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 596 by dpavlin, Fri Nov 28 17:20:05 2008 UTC revision 600 by dpavlin, Fri Nov 28 19:19:03 2008 UTC
# Line 121  sub _head_html { Line 121  sub _head_html {
121                  $path =~ s!^/!!;                  $path =~ s!^/!!;
122                  if ( $path =~ m/\.js$/ ) {                  if ( $path =~ m/\.js$/ ) {
123                          $out .= $self->_inline_path( $path ) ?                          $out .= $self->_inline_path( $path ) ?
124                                  qq|<!-- $path --><script type="text/javascript">\n| . read_file($path) . qq|\n</script>| :                                  qq|<script type="text/javascript">\n/* inline $path */\n\n| . read_file($path) . qq|\n</script>| :
125                                  qq|<script type="text/javascript" src="/$path"></script>|;                                  qq|<script type="text/javascript" src="/$path"></script>|;
126                  } elsif ( $path =~ m/\.css$/ ) {                  } elsif ( $path =~ m/\.css$/ ) {
127                          $out .= $self->_inline_path( $path ) ?                          $out .= $self->_inline_path( $path ) ?
128                                  qq|<!-- $path --><style type="text/css">\n| . read_file( $path ) . qq|\n</style>| :                                  qq|<style type="text/css">\n/* inline $path */\n\n| . read_file( $path ) . qq|\n</style>| :
129                                  qq|<link type="text/css" rel="stylesheet" href="/$path" media="screen">|;                                  qq|<link type="text/css" rel="stylesheet" href="/$path" media="screen">|;
130                  } elsif ( $path =~ m{<.+>}s ) {                  } elsif ( $path =~ m{<.+>}s ) {
131                          $out .= $path;                          $out .= $path;

Legend:
Removed from v.596  
changed lines
  Added in v.600

  ViewVC Help
Powered by ViewVC 1.1.26