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:
parent
99cdfe6107
commit
3bdf4afa1a
2 changed files with 13 additions and 0 deletions
|
@ -58,3 +58,9 @@ input.button { margin: 1em 0; }
|
||||||
.error a { color: #8a1f11; }
|
.error a { color: #8a1f11; }
|
||||||
.notice a { color: #514721; }
|
.notice a { color: #514721; }
|
||||||
.success a { color: #264409; }
|
.success a { color: #264409; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Comment Form */
|
||||||
|
form#contact_form .buttons {
|
||||||
|
margin-top: 1em;
|
||||||
|
}
|
||||||
|
|
|
@ -36,3 +36,10 @@
|
||||||
<#include "/components/scripts.ftl">
|
<#include "/components/scripts.ftl">
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</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")}
|
||||||
|
-->
|
Loading…
Add table
Add a link
Reference in a new issue