/[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 1045 by dpavlin, Thu Mar 12 20:56:04 2009 UTC revision 1064 by dpavlin, Mon Apr 27 18:40:41 2009 UTC
# Line 7  use Data::Dump qw/dump/; Line 7  use Data::Dump qw/dump/;
7  use Carp qw/confess cluck carp/;  use Carp qw/confess cluck carp/;
8  use File::Slurp;  use File::Slurp;
9  use Text::Tabs; # expand, unexpand  use Text::Tabs; # expand, unexpand
10    use Digest::MD5 qw/md5/;
11    
12  use lib 'lib';  use lib 'lib';
13    
# Line 193  sub add_head { Line 194  sub add_head {
194    
195  }  }
196    
197    my $seen;
198    
199  sub _add_css_js {  sub _add_css_js {
200          my ( $self, $what, $content ) = @_;          my ( $self, $what, $content ) = @_;
201    
202            my $md5 = md5( $content );
203            return if $seen->{$what}->{$md5}++;
204    
205          my $tag  = $what eq 'css' ? 'style'    : 'script';          my $tag  = $what eq 'css' ? 'style'    : 'script';
206          my $type = $what eq 'css' ? 'text/css' : 'text/javascript';          my $type = $what eq 'css' ? 'text/css' : 'text/javascript';
207          my $head;          my $head;

Legend:
Removed from v.1045  
changed lines
  Added in v.1064

  ViewVC Help
Powered by ViewVC 1.1.26