Subject: | include_css is far too aggressive |
The &include_css routine is far too aggressive. It will replace nearly
any link element in the head. This line should be added directly after
sub pattern_css's declaration ends:
return $gabarit unless $gabarit =~ /stylesheet/i;
Even this is sub-par, but it will eliminate many problems. (For what
it's worth, declaring a subroutine inside a subroutine nearly certainly
doesn't do what you think; it is still globally available, but now
encloses unused variables; it's quite confusing.)
--
rjbs