javaScriptIncludeTag()
Description
Returns a script tag for a Javascript file (or several) tag based on the supplied arguments.
Function Syntax
javaScriptIncludeTag([ sources, type ])
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
sources |
string |
No | |
The name of one or many JavaScript files in the javascripts folder, minus the .js extension. (Can also be called with the source argument). |
type |
string |
No | text/javascript |
The type attribute for the script tag. |
Examples
<!--- view code --->
<head>
#javaScriptIncludeTag("main")#
</head>
