Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.