Tcl Library Source Code

Documentation
Login


[ Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]

NAME

html - Procedures to generate HTML structures

Table Of Contents

SYNOPSIS

package require Tcl 8.5 9
package require html ?1.6?

::html::author author
::html::bodyTag args
::html::cell param value ?tag?
::html::checkbox name value
::html::checkSet key sep list
::html::checkValue name ?value?
::html::closeTag
::html::default key ?param?
::html::description description
::html::end
::html::eval arg ?args?
::html::extractParam param key ?varName?
::html::font args
::html::for start test next body
::html::foreach varlist1 list1 ?varlist2 list2 ...? body
::html::formValue name ?defvalue?
::html::getFormInfo args
::html::getTitle
::html::h level string ?param?
::html::h1 string ?param?
::html::h2 string ?param?
::html::h3 string ?param?
::html::h4 string ?param?
::html::h5 string ?param?
::html::h6 string ?param?
::html::hdrRow args
::html::head title
::html::headTag string
::html::html_entities string
::html::if expr1 body1 ?elseif expr2 body2 ...? ?else bodyN?
::html::init ?list?
::html::keywords args
::html::mailto email ?subject?
::html::meta args
::html::meta_name args
::html::meta_equiv args
::html::meta_charset charset
::html::css href
::html::css-clear
::html::js href
::html::js-clear
::html::minorList list ?ordered?
::html::minorMenu list ?sep?
::html::nl2br string
::html::openTag tag ?param?
::html::paramRow list ?rparam? ?cparam?
::html::passwordInput ?name?
::html::passwordInputRow label ?name?
::html::quoteFormValue value
::html::radioSet key sep list
::html::radioValue name value
::html::refresh seconds url
::html::row args
::html::select name param choices ?current?
::html::selectPlain name param choices ?current?
::html::set var val
::html::submit label ?name? ?title?
::html::tableFromArray arrname ?param? ?pat?
::html::tableFromList querylist ?param?
::html::textarea name ?param? ?current?
::html::textInput name value args
::html::textInputRow label name value args
::html::varEmpty name
::html::while test body
::html::doctype id
::html::wrapTag tag ?text? ?args?

DESCRIPTION

The package html provides commands that generate HTML. These commands typically return an HTML string as their result. In particular, they do not output their result to stdout.

The command ::html::init should be called early to initialize the module. You can also use this procedure to define default values for HTML tag parameters.

Bugs, Ideas, Feedback

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category html of the Tcllib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.

When proposing code changes, please provide unified diffs, i.e the output of diff -u.

Note further that attachments are strongly preferred over inlined patches. Attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.

SEE ALSO

htmlparse, ncgi

KEYWORDS

checkbox, checkbutton, form, html, radiobutton, table

CATEGORY

CGI programming