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:
comparison

hidden

html

inspector

xml


Tuple components:
checkbox

choice

code

farkup

field

link

password

textarea


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


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