194 |
|
|
195 |
} |
} |
196 |
|
|
|
my $seen; |
|
|
|
|
197 |
sub _add_css_js { |
sub _add_css_js { |
198 |
my ( $self, $what, $content ) = @_; |
my ( $self, $what, $content ) = @_; |
199 |
|
|
200 |
my $md5 = md5( $content ); |
my $md5 = md5( $content ); |
201 |
return if $seen->{$what}->{$md5}++; |
return if $self->{_add_css_js_seen}->{$what}->{$md5}++; |
202 |
|
|
203 |
my $tag = $what eq 'css' ? 'style' : 'script'; |
my $tag = $what eq 'css' ? 'style' : 'script'; |
204 |
my $type = $what eq 'css' ? 'text/css' : 'text/javascript'; |
my $type = $what eq 'css' ? 'text/css' : 'text/javascript'; |