Skip to content

Instantly share code, notes, and snippets.

@rotty3000
Created October 12, 2011 16:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rotty3000/1281821 to your computer and use it in GitHub Desktop.
Save rotty3000/1281821 to your computer and use it in GitHub Desktop.
adding javascript files from your theme
...
<head>
<title>${the_title} - ${company_name}</title>
${theme.include(top_head_include)}
<#--
-- <@liferay.js /> is a macro that should produce the correct output, timestamped to match that of the theme
-- Note main.js is already included automatically
-->
<@liferay.js file_name="${themeDisplay.getPathThemeJavaScript()}/main.js" />
</head>
...
...
<head>
<title>$the_title - $company_name</title>
$theme.include($top_head_include)
##
## #js() is a macro that should produce the correct output, timestamped to match that of the theme
## Note main.js is already included automatically
##
#js("${themeDisplay.getPathThemeJavaScript()}/main.js")
</head>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment