.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Syntax::HTML 3pm" .TH Syntax::HTML 3pm "2023-01-22" "perl v5.36.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Embperl::Syntax::HTML \- define the syntax for HTML .SH "SYNOPSIS" .IX Header "SYNOPSIS" .SH "DESCRIPTION" .IX Header "DESCRIPTION" Class derived from Embperl::Syntax to define the syntax for \s-1HTML.\s0 This class does not add functionalty of it own, it just provides methods add definitions for derived classes to implement their own tags. .SH "Methods" .IX Header "Methods" \&\fIEmbperl::Syntax::HTML\fR defines the following methods: .ie n .SS "Embperl::Syntax::HTML \-> new / $self \-> new" .el .SS "Embperl::Syntax::HTML \-> new / \f(CW$self\fP \-> new" .IX Subsection "Embperl::Syntax::HTML -> new / $self -> new" Create a new syntax class. This method should only be called inside a constructor of a derived class. .ie n .SS "AddTag ($tagname, $attrs, $attrsurl, $attrsnoval, $procinfo, $taginfo, $addsess)" .el .SS "AddTag ($tagname, \f(CW$attrs\fP, \f(CW$attrsurl\fP, \f(CW$attrsnoval\fP, \f(CW$procinfo\fP, \f(CW$taginfo\fP, \f(CW$addsess\fP)" .IX Subsection "AddTag ($tagname, $attrs, $attrsurl, $attrsnoval, $procinfo, $taginfo, $addsess)" Add a new \s-1HTML\s0 tag. .ie n .IP "$tagname" 4 .el .IP "\f(CW$tagname\fR" 4 .IX Item "$tagname" Name of the \s-1HTML\s0 tag .ie n .IP "$attrs" 4 .el .IP "\f(CW$attrs\fR" 4 .IX Item "$attrs" List of attributes that should be parsed out. .ie n .IP "$attrsurl" 4 .el .IP "\f(CW$attrsurl\fR" 4 .IX Item "$attrsurl" List of attributes that should be parsed out. Any output inside the attribute value is url escaped. .ie n .IP "$attrsnoval" 4 .el .IP "\f(CW$attrsnoval\fR" 4 .IX Item "$attrsnoval" List of attributes that should be parsed out and doesn't contain a value. .ie n .IP "$procinfo" 4 .el .IP "\f(CW$procinfo\fR" 4 .IX Item "$procinfo" Processor info. See \fIEmbperl::Syntax\fR for a definition of procinfo. .ie n .IP "$taginfo" 4 .el .IP "\f(CW$taginfo\fR" 4 .IX Item "$taginfo" Additional tag definitions. See \fIEmbperl::Syntax\fR for more infos. .ie n .IP "$addsess" 4 .el .IP "\f(CW$addsess\fR" 4 .IX Item "$addsess" If set to 1 session id will be added to attributes passed via \f(CW$attrsurl\fR. If set to 2 a hidden input tag with the session id will be added. .ie n .SS "AddTagInside ($tagname, $attrs, $attrsurl, $attrsnoval, $procinfo)" .el .SS "AddTagInside ($tagname, \f(CW$attrs\fP, \f(CW$attrsurl\fP, \f(CW$attrsnoval\fP, \f(CW$procinfo\fP)" .IX Subsection "AddTagInside ($tagname, $attrs, $attrsurl, $attrsnoval, $procinfo)" Same as AddTag, but tag could be also used inside of another tag. (e.g. > ). This is not \s-1HTML\s0 or \s-1XML\s0 compatible, but maybe useful for implementing tagslibs etc. sometimes. .ie n .SS "AddComment ($tagname, $attrs, $attrsurl, $attrsnoval, $procinfo)" .el .SS "AddComment ($tagname, \f(CW$attrs\fP, \f(CW$attrsurl\fP, \f(CW$attrsnoval\fP, \f(CW$procinfo\fP)" .IX Subsection "AddComment ($tagname, $attrs, $attrsurl, $attrsnoval, $procinfo)" Add a new \s-1HTML\s0 comment. Parameters are the same as for \f(CW\*(C`AddTag\*(C'\fR. .ie n .SS "AddTagBlock ($tagname, $attrs, $attrsurl, $attrsnoval, $procinfo)" .el .SS "AddTagBlock ($tagname, \f(CW$attrs\fP, \f(CW$attrsurl\fP, \f(CW$attrsnoval\fP, \f(CW$procinfo\fP)" .IX Subsection "AddTagBlock ($tagname, $attrs, $attrsurl, $attrsnoval, $procinfo)" Add a new \s-1HTML\s0 tag with start and end tag (e.g. and
). Parameters are the same as for \f(CW\*(C`AddTag\*(C'\fR. .ie n .SS "AddTagWithStart ($tagname, $startname, $attrs, $attrsurl, $attrsnoval, $procinfo)" .el .SS "AddTagWithStart ($tagname, \f(CW$startname\fP, \f(CW$attrs\fP, \f(CW$attrsurl\fP, \f(CW$attrsnoval\fP, \f(CW$procinfo\fP)" .IX Subsection "AddTagWithStart ($tagname, $startname, $attrs, $attrsurl, $attrsnoval, $procinfo)" Add a new \s-1HTML\s0 tag which is an endtag for another tag. In opposite to \f(CW\*(C`AddTagBlock\*(C'\fR the end tag can, but need not exists in the source. Parameters are the same as for \f(CW\*(C`AddTag\*(C'\fR. Addtionaly the name of the starttag must be specified. .SH "Author" .IX Header "Author" G. Richter (richter at embperl dot org) .SH "See Also" .IX Header "See Also" Embperl::Syntax