script
HTML script tag. Javascript files can be delivered one by one or bundled together as a web resource configured using your DI engine.
Tag Information | |
---|---|
Tag Class | org.loom.tags.core.ScriptTag |
Body Content | scriptless |
Dynamic Attributes | true |
Example | <l:script src="/js/IE7.js" ieLessThan="7"/> <l:script action="Resources" event="pull"/> <l:script resource="admin-javascript-resources"/> |
Attributes
Name | Description | Flags |
---|---|---|
action | The Action to invoke. If specified, the link will be calculated using the action/event pair. |
rtexprvalue
|
charset | HTML attribute |
rtexprvalue
|
defer | HTML attribute |
rtexprvalue
|
event | The Event to invoke. If specified, the link will be calculated using the
action/event pair. Any not-null nested param tag or param-
prefixed attribute will be appended.
|
rtexprvalue
|
hostname | The server name to use. If not specified, the current request.getServerName() value will be used. |
rtexprvalue
|
ieLessThan | If specified, the script will be surrounded by conditional Internet Explorer comments <--[if lt IE #]> ... <![endif]--> Set to a number to apply to versions strictly less than specified, or "any" for any version of IE. |
rtexprvalue
|
language | HTML attribute |
rtexprvalue
|
mapping | The mapping as action.event . This method is equivalent to
setting action and event separately.
|
rtexprvalue
|
port | The port to use. If not specified, the current request port will be used. |
rtexprvalue
|
relative | true if the url is relative (do not render schema, server or port), false to render a full URL. Default is true |
rtexprvalue
|
resource | The web resource bundle to use. If not null, the specified web resource will be delivered:
|
rtexprvalue
|
scheme | The scheme to use. If not specified, the current request scheme will be used. |
rtexprvalue
|
src | HTML attribute The target url, or alternatively use the action and event properties |
rtexprvalue
|
type | Link HTML attribute or script HTML attribute If unspecified, defaults to "text/css" or "text/javascript", respectively |
rtexprvalue
|