Changed template variable stylesheetDir to themeStylesheetDir for clarity. Added examples of how to add a script from a body template. Pass themedir to ScriptList object.

This commit is contained in:
rjy7 2010-06-25 17:44:51 +00:00
parent 0d656c8370
commit fc15fd5d20

View file

@ -38,13 +38,21 @@
</body> </body>
</html> </html>
<#-- Three ways to add a stylesheet: <#--
Three ways to add a stylesheet:
A. In theme directory: A. In theme directory:
${stylesheets.addFromTheme("/sample.css"); ${stylesheets.addFromTheme("/sample.css");
${stylesheets.add(stylesheetDir + "/sample.css")} ${stylesheets.add(themeStylesheetDir + "/sample.css")}
B. Any location B. Any location
${stylesheets.add("/edit/forms/css/sample.css"} ${stylesheets.add("/edit/forms/css/sample.css)"}
To add a script:
A. In theme directory:
${scripts.addFromTheme("/sample.js");
B. Any location
${scripts("/edit/forms/js/sample.js)"}
--> -->