Good point about the ordering.
I have been playing a little with the code and
a very simple solution exists for index.jelly pages:
Modify hudson/main/core/src/main/resources/lib/layout/layout.jelly
to allow an optional css attribute, some thing like the included patch.
in an index.jelly one can then do:
<j:jelly xmlns:j="jelly:core"
xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout"
xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<l:layout css="/plugin/mysuperplugin/css/myneatstyle.css">
..
the myneatstyle.css would contain the styles for this page,
and could if needs import other stylesheets.
Peter.
— layout.jelly 2007-06-26 18:09:52.000000000 +0100
+++ layout-modified.jelly 2007-08-01 23:35:39.000000000 +0100
@@ -20,6 +20,7 @@
<title>${h.appendIfNotNull(title, ' [Hudson]', 'Hudson')}</title>
<link rel="stylesheet" href="${rootURL}/css/style.css" type="text/css" />
<link rel="stylesheet" href="${rootURL}/css/color.css" type="text/css" />
+ <link rel="stylesheet" href="${rootURL}/${css}" type="text/css" />
<link rel="shortcut icon" href="${rootURL}/favicon.ico"
type="image/vnd.microsoft.icon" />
<script src="${rootURL}/scripts/prototype.js" type="text/javascript"></script>
<script src="${rootURL}/scripts/behavior.js" type="text/javascript"></script>
Would you need to specify order among CSS, or can Hudson use some trivial
ordering scheme (like alphabetical order)?
I ask this because order in CSS matters.