Elfyn McBratney <[EMAIL PROTECTED]> tapota :

> Hey all,
>
> On Thursday 23 Sep 2004 14:22, Mathieu Roy wrote:
>> An improvement of the dirty hack related to MSIE (search for MSIE in
>> Layout.class) permits to be able to modify themes without much risk of
>> doing something unbearable with MSIE.
>>
>> So now cosmetics changes can be done more freely than it was
>> yesterday -- we should no longer fear big breakage.
>
> kinda, sorta unrelated, but use of a (even a simple) templating engine would 
> help multi-browser support a lot.  If the logic is separated from the layout, 
> it's a lot easier to maintain too, from my webmaster'ing exp. :-)
>
> Considering smarty, we could export several (or a lot) of interfaces to API 
> functions through smarty plugin's, and use them in a template like this:
>
>  ---8<---
>   {* simple usage browser checking *}
>
>   <link rel="stylesheet" href="/style/base.css" />
>
>   {if browser_plugin.browser_short_name == "moz"}
>       <link rel="stylesheet" href="/style/moz.css" />
>   {else if browser_plugin.browser_short_name == "konq"}
>       <link rel="stylesheet" href="/style/konq.css" />
>   {else if browser_plugin.browser_short_name == "other-browser"}
>       <link rel="stylesheet" href="/style/other-browser.css" />
>   ...
> --->8---  
>
> (That's very basic and doesn't show you all the magic and simplifications you 

I thought to that but I thought it was a bad move: the point of
sticking to standards is to avoid exactly to do specific stuff for
each browser.

No it turned out that two hacks we're necessary to make Savane usable
with MSIE. So I did these hacks.

But I prefer keeping two hacks tagged as BAD_NECESSARY_THING than
implementing and, so, endorsing, unjustified different interpretations
of standards.

-- 
Mathieu Roy

  +---------------------------------------------------------------------+
  | General Homepage:           http://yeupou.coleumes.org/             |
  | Computing Homepage:         http://alberich.coleumes.org/           |
  | Not a native english speaker:                                       |
  |     http://stock.coleumes.org/doc.php?i=/misc-files/flawed-english  |
  +---------------------------------------------------------------------+

Reply via email to