PET::Util::EHTML |
PET Util package for manipulating HTML -- mostly forms.
| PET:: | PET Util package for manipulating HTML -- mostly forms. |
| Functions | |
| NAME | |
| bodySelect (%p) | Creates a <select>...</select> tag, using various parameters. |
| addAttributes (%p) | Adds (x)html attributes to tag. |
| onhref (%p) | This is mostly used for denoting the currently active menu. |
sub bodySelect
Creates a <select>...</select> tag, using various parameters.
_body : value option [separated by a whitespace -- value must be \w+ ] separator : value-option separator override selected : the selected option, if any array : optional, used if not _body is passed; format is FIXME <all_other> : all other parameters (e.g. “class”) are put in “as is”
string
sub onhref
This is mostly used for denoting the currently active menu. More prcisely: an “<a href...>” tag is shown if the given textlink is NOT the same as the current URL.
<ehtml:onhref link=”/a/b.pet” linktext=”go here” text=”you are here” />
Only works with url-base absolute menus currently!
sub NAME
Creates a select...</select> tag, using various parameters.
sub bodySelect
Adds (x)html attributes to tag.
sub addAttributes
This is mostly used for denoting the currently active menu.
sub onhref