link - Factor Documentation (original) (raw)

link
Furnace framework » Furnace presentation layer » HTML components

Prev: field
Next: password

Vocabulary
html.components

Word description
Link components render a value responding to the link-title and link-href generic words. The optional target slot is a target frame to open the link in.

Definition

IN: html.components

TUPLE: link target ;

Methods

USING: accessors html.components kernel xml.data
xml.syntax.private ;

M: link render*
nip swap
[ target>> ] [ [ link-href ] [ link-title ] bi ] bi* 3 nenum
T{ xml-chunk
{ seq
V{
""
T{ tag
{ name ~name~ }
{ attrs ~attrs~ }
{ children ~vector~ }
}
""
}
}
} interpolate-xml ;