Implement StylesheetList and ScriptList view objects and new strategy for templates to direct stylesheets and script files to be loaded onto a page.

This commit is contained in:
rjy7 2010-05-21 15:56:07 +00:00
parent 99cdfe6107
commit 3bdf4afa1a
2 changed files with 13 additions and 0 deletions

View file

@ -58,3 +58,9 @@ input.button { margin: 1em 0; }
.error a { color: #8a1f11; }
.notice a { color: #514721; }
.success a { color: #264409; }
/* Comment Form */
form#contact_form .buttons {
margin-top: 1em;
}

View file

@ -36,3 +36,10 @@
<#include "/components/scripts.ftl">
</body>
</html>
<#-- How to add a stylesheet:
${stylesheets.addFromTheme("/sample.css");
${stylesheets.add("/themes/vivo-basic/css/sample.css"}
NOT (gets contextPath added twice):
${stylesheets.add(stylesheetDir + "/sample.css")}
-->