Interface HamletSpec.HeadMisc
- All Superinterfaces:
HamletSpec._Object,HamletSpec._Script
- All Known Subinterfaces:
HamletSpec._Head,HamletSpec._Html,HamletSpec.HEAD,HamletSpec.HTML
- All Known Implementing Classes:
Hamlet,Hamlet.HEAD,Hamlet.HTML,HtmlBlock.Block,HtmlPage.Page
- Enclosing class:
- HamletSpec
%head.misc
-
Method Summary
Methods inherited from interface org.apache.hadoop.yarn.webapp.hamlet2.HamletSpec._Object
object, objectMethods inherited from interface org.apache.hadoop.yarn.webapp.hamlet2.HamletSpec._Script
script, script
-
Method Details
-
style
HamletSpec.STYLE style()Add a style element.- Returns:
- a style element builder
-
style
Add a css style element.- Parameters:
lines- content of the style sheet- Returns:
- the current element builder
-
meta
HamletSpec.META meta()Add a meta element.- Returns:
- a meta element builder
-
meta
Add a meta element. Shortcut ofmeta().$name(name).$content(content).__();- Parameters:
name- of the meta elementcontent- of the meta element- Returns:
- the current element builder
-
meta_http
Add a meta element with http-equiv attribute. Shortcut of
meta().$http_equiv(header).$content(content).__();- Parameters:
header- for the http-equiv attributecontent- of the header- Returns:
- the current element builder
-
link
HamletSpec.LINK link()Add a link element.- Returns:
- a link element builder
-
link
Add a link element. Implementation should try to figure out type by the suffix of href. Solink("style.css");is a shortcut oflink().$rel("stylesheet").$type("text/css").$href("style.css").__();- Parameters:
href- of the link- Returns:
- the current element builder
-