Tapestry ignoring expansions in HTML comments

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Tapestry ignoring expansions in HTML comments

David Diaz
Hi guys,

I've been working at my Tapestry application for a while and I'm just
cleaning it up and I'm currently ensuring compatibility with Internet
Explorer 8+. This requires me to include IE8 specific shims/polyfills for
certain javascript functions it's missing.

I'm trying to do this in my Layout.tml:

  <head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>

    <title>Tapestry Application</title>
    <link rel="shortcut icon" href="${asset:context:/favicon.ico}"/>
    <!--[if lt IE 9]>
      <script src="${asset:context:/js/shim.js}"></script>
    <![endif]-->
  </head>

but tapestry doesn't replace the expansion with the actual location of the
file in the generated source code...

Is there any way to do this?

Thanks,
David.
Reply | Threaded
Open this post in threaded view
|

Re: Tapestry ignoring expansions in HTML comments

Lance Java
http://tapestryjava.blogspot.co.uk/2013/12/tapestry-quicky-conditionalcomment.html
On 16 Mar 2016 5:42 a.m., "David Diaz" <[hidden email]> wrote:

> Hi guys,
>
> I've been working at my Tapestry application for a while and I'm just
> cleaning it up and I'm currently ensuring compatibility with Internet
> Explorer 8+. This requires me to include IE8 specific shims/polyfills for
> certain javascript functions it's missing.
>
> I'm trying to do this in my Layout.tml:
>
>   <head>
>     <meta charset="utf-8"/>
>     <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
>     <meta name="viewport" content="width=device-width, initial-scale=1"/>
>
>     <title>Tapestry Application</title>
>     <link rel="shortcut icon" href="${asset:context:/favicon.ico}"/>
>     <!--[if lt IE 9]>
>       <script src="${asset:context:/js/shim.js}"></script>
>     <![endif]-->
>   </head>
>
> but tapestry doesn't replace the expansion with the actual location of the
> file in the generated source code...
>
> Is there any way to do this?
>
> Thanks,
> David.
>
Reply | Threaded
Open this post in threaded view
|

Re: Tapestry ignoring expansions in HTML comments

David Diaz
Thank you!

On Wed, Mar 16, 2016 at 7:35 PM, Lance Java <[hidden email]>
wrote:

>
> http://tapestryjava.blogspot.co.uk/2013/12/tapestry-quicky-conditionalcomment.html
> On 16 Mar 2016 5:42 a.m., "David Diaz" <[hidden email]> wrote:
>
> > Hi guys,
> >
> > I've been working at my Tapestry application for a while and I'm just
> > cleaning it up and I'm currently ensuring compatibility with Internet
> > Explorer 8+. This requires me to include IE8 specific shims/polyfills for
> > certain javascript functions it's missing.
> >
> > I'm trying to do this in my Layout.tml:
> >
> >   <head>
> >     <meta charset="utf-8"/>
> >     <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
> >     <meta name="viewport" content="width=device-width, initial-scale=1"/>
> >
> >     <title>Tapestry Application</title>
> >     <link rel="shortcut icon" href="${asset:context:/favicon.ico}"/>
> >     <!--[if lt IE 9]>
> >       <script src="${asset:context:/js/shim.js}"></script>
> >     <![endif]-->
> >   </head>
> >
> > but tapestry doesn't replace the expansion with the actual location of
> the
> > file in the generated source code...
> >
> > Is there any way to do this?
> >
> > Thanks,
> > David.
> >
>