in reply to IE specific conditional comments in header of CGI.pm

I use templates (see HTML::Template, Template::Toolkit) to separate my perl code from my html/CSS/JavaScript, which among other advantages makes it easier to control things such as this.

  • Comment on Re: IE specific conditional comments in header of CGI.pm

Replies are listed 'Best First'.
Re^2: IE specific conditional comments in header of CGI.pm
by pashanoid (Scribe) on Apr 06, 2012 at 08:42 UTC
    well, you're saying that there is no way, right?

      well, you're saying that there is no way, right?

      I think he's saying you have to write it, but its better to switch to templates as early as possible, because the alternative is this

      monkeypatching one of CGI.pm's very complicated html generation subroutines, no test written for test suite

      I suppose it might be more genetic to accept

      { 'src' => '/styles/ie1.css', -wrapp => [ '<!--[if lte IE 6]>', '<![endif]-->' ], },
      but whatever :)