Add #{get 'moreStyles' /} and #{get 'moreScripts' /} in the default main.html
Bug #485907 reported by
Guillaume Bort
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
play framework | Status tracked in 1.0 | |||||
1.0 |
Fix Released
|
Wishlist
|
Nicolas Leroux | |||
1.1 |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Because it is useful as starting point.
Changed in play: | |
status: | New → Confirmed |
Changed in play: | |
status: | Confirmed → Fix Committed |
Changed in play: | |
importance: | Undecided → Wishlist |
To post a comment you must log in.
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} {'/public/ stylesheets/ xxx.css' }" />
<link rel="stylesheet" type="text/css" media="screen" href="@
#{/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.