HTML components
Furnace framework > Furnace presentation layer

Next:HTML forms


The html.components vocabulary provides various HTML form components.

Most web applications can use the html.templates.chloe templating framework instead of using this vocabulary directly. Where maximum flexibility is required, this vocabulary can be used together with the html.templates.fhtml templating framework.

Rendering components:
render ( name renderer -- )


Components render a named value, and the name of the value is passed in every time the component is rendered, rather than being associated with the component itself. Named values are taken from the current HTML form (see HTML forms).

Component come in two varieties: singletons and tuples. Components with no configuration are singletons; they do not have to instantiated, rather the class word represents the component. Tuple components have to be instantiated and offer configuration options.

Singleton components:
hidden

link

inspector

comparison

html

xml


Tuple components:
field

password

textarea

choice

checkbox

code

farkup


Creating custom components:
render* ( value name renderer -- xml )


Custom components can emit HTML using the xml.syntax vocabulary.