[Bps-public-commit] r13550 - in HTML-RewriteAttributes: lib/HTML/RewriteAttributes

sartak at bestpractical.com sartak at bestpractical.com
Mon Jun 23 18:37:21 EDT 2008


Author: sartak
Date: Mon Jun 23 18:37:20 2008
New Revision: 13550

Modified:
   HTML-RewriteAttributes/   (props changed)
   HTML-RewriteAttributes/lib/HTML/RewriteAttributes/Resources.pm

Log:
 r63088 at onn:  sartak | 2008-06-23 18:33:33 -0400
 Include as a comment the path of each inlined CSS file


Modified: HTML-RewriteAttributes/lib/HTML/RewriteAttributes/Resources.pm
==============================================================================
--- HTML-RewriteAttributes/lib/HTML/RewriteAttributes/Resources.pm	(original)
+++ HTML-RewriteAttributes/lib/HTML/RewriteAttributes/Resources.pm	Mon Jun 23 18:37:20 2008
@@ -109,7 +109,8 @@
 
     return '' if $self->{rewrite_inline_imports_seen}{$path}++;
 
-    my $content = $self->{rewrite_inline_css_cb}->($path);
+    my $content = "/* $path */\n"
+                . $self->{rewrite_inline_css_cb}->($path);
     return $self->_handle_imports($content, $path);
 }
 



More information about the Bps-public-commit mailing list