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
b9dfa9023b
commit
bda278e59b
13 changed files with 138 additions and 56 deletions
|
@ -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")}
|
||||
-->
|
Loading…
Add table
Add a link
Reference in a new issue