[PHPTAL] Variables inside conditional comments not parsed

Kornel Lesiński kornel at aardvarkmedia.co.uk
Thu Aug 7 16:51:11 CEST 2008


On 07-08-2008 at 13:37:19 Jakub Argasiński <argasek at gmail.com> wrote:

> variables inside <!--[if IE]>...<![endif]--> are not parsed.

Indeed, because technically it's a comment. PHPTAL is not IE, so it  
doesn't interpret magic IE "tags".

You can hack around it with something like this:
<tal:block tal:content='structure string:<!--[if IE]> <link  
href="${baseUrl}img/favicon.ico"><![endif]-->' />

-- 
regards, Kornel



More information about the PHPTAL mailing list