Created
October 12, 2011 16:57
-
-
Save rotty3000/1281821 to your computer and use it in GitHub Desktop.
adding javascript files from your theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<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> | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<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