public static interface HamletSpec.HeadMisc extends HamletSpec._Script, HamletSpec._Object
Modifier and Type | Method and Description |
---|---|
HamletSpec.LINK |
link()
Add a link element.
|
HamletSpec.HeadMisc |
link(String href)
Add a link element.
|
HamletSpec.HeadMisc |
meta_http(String header,
String content)
Add a meta element with http-equiv attribute.
|
HamletSpec.META |
meta()
Add a meta element.
|
HamletSpec.HeadMisc |
meta(String name,
String content)
Add a meta element.
|
HamletSpec.STYLE |
style()
Add a style element.
|
HamletSpec.HeadMisc |
style(Object... lines)
Add a css style element.
|
script, script
object, object
HamletSpec.STYLE style()
HamletSpec.HeadMisc style(Object... lines)
lines
- content of the style sheetHamletSpec.META meta()
HamletSpec.HeadMisc meta(String name, String content)
meta().$name(name).$content(content).__();
name
- of the meta elementcontent
- of the meta elementHamletSpec.HeadMisc meta_http(String header, String content)
meta().$http_equiv(header).$content(content).__();
header
- for the http-equiv attributecontent
- of the headerHamletSpec.LINK link()
HamletSpec.HeadMisc link(String href)
link("style.css");
is a shortcut of
link().$rel("stylesheet").$type("text/css").$href("style.css").__();
href
- of the linkCopyright © 2008–2024 Apache Software Foundation. All rights reserved.