Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fixed static path

...

To include static resources in your plugins add them under "/static" in your jar. And include them in your page using "/staticstruts" as the path, like in the following example:

Code Block
html
html
Assuming /static/main.css is inside a plugin jar, to add it to the page:

<@s.url value="/staticstruts/main.css" var="css" />
<link rel="stylesheet" type="text/css" href="%{#css}" />

...