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
|
@ -1,5 +1,6 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
${scripts.tags}
|
||||
|
||||
<#include "googleAnalytics.ftl">
|
||||
|
||||
<#-- OTHER SCRIPT TAGS HERE -->
|
|
@ -1,10 +1,6 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="${stylesheetDir}screen.css" media="screen"/>
|
||||
<link rel="stylesheet" type="text/css" href="${stylesheetDir}print.css" media="print"/>
|
||||
<link rel="stylesheet" type="text/css" href="${stylesheetDir}/screen.css" media="screen"/>
|
||||
<link rel="stylesheet" type="text/css" href="${stylesheetDir}/print.css" media="print"/>
|
||||
|
||||
<#if stylesheeets??>
|
||||
<#list stylesheets as stylesheet>
|
||||
${stylesheet}
|
||||
</#list>
|
||||
</#if>
|
||||
${stylesheets.tags}
|
Loading…
Add table
Add a link
Reference in a new issue