css

HTML CSS link. CSS 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.CssTag
Body Content scriptless
Dynamic Attributes true
Example
<l:css href="/css/ie7.css" ieLessThan="7"/>
<l:css resource="styles"/>

Attributes

Name Description Flags
action The Action to invoke. If specified, the link will be calculated using the action/event pair.
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
href HTML attribute
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
mapping The mapping as action.event. This method is equivalent to setting action and event separately.
rtexprvalue
media see http://www.w3.org/TR/html4/present/styles.html#adef-media
rtexprvalue
port The port to use. If not specified, the current request port will be used.
rtexprvalue
rel HTML attribute
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:
  • Config.development is true: each file specified in this resource will be retrieved separately, and no compression will take place
  • Config.development is false: all files in this resource will be concatenated, minified and gzipped in a single file before delivering to the browser
rtexprvalue
scheme The scheme to use. If not specified, the current request scheme will be used.
rtexprvalue
type Link HTML attribute or script HTML attribute If unspecified, defaults to "text/css" or "text/javascript", respectively
rtexprvalue