Comment 2 for bug 485907

Revision history for this message
Guillaume Bort (guillaume-bort) wrote : Re: [Bug 485907] Re: Add #{get 'moreStyles' /} and #{get 'moreScripts' /} in the default main.html

#{set 'moreStyles'}
<link rel="stylesheet" type="text/css" media="screen"
href="@{'/public/stylesheets/xxx.css'}" />
#{/set}

Works.

On Sun, Nov 22, 2009 at 1:33 PM, Nicolas <email address hidden> wrote:
> I think we need to extend the set tag because it is impossible to do:
>
> #{set moreStyles:'<link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/xxx.css'}" />'}
>
> or
>
> #{set moreStyles}
> <link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/xxx.css'}" />
> #{/set}
>
> at the moment. However,
>
> #{set moreStyles:'<link rel="stylesheet" type="text/css" media="screen"
> href="/public/stylesheets/xxx.css" />'/}
>
> does work but it is not really elegant, especially when you have
> multiple css/scripts.
>
> The best will of course to support 'tiles', but this is another issue.
>
> --
> Add #{get 'moreStyles' /} and #{get 'moreScripts' /} in the default main.html
> https://bugs.launchpad.net/bugs/485907
> You received this bug notification because you are a member of play
> framework developers, which is subscribed to play framework.
>