HTML::Embperl::Syntax::HTML
Class derived from HTML::Embperl::Syntax to define the syntax for HTML. This class does not add functionalty of it own, it just provides methods add definitions for derived classes to implement their own tags.
HTML::Embperl::Syntax::HTML defines the following methods:
Create a new syntax class. This method should only be called inside a constructor of a derived class.
Add a new HTML tag.
Name of the HTML tag
List of attributes that should be parsed out.
List of attributes that should be parsed out. Any output inside the attribute value is url escaped.
List of attributes that should be parsed out and doesn't contain a value.
Processor info. See HTML::Embperl::Syntax for a definition of procinfo.
Same as AddTag, but tag could be also used inside of another tag. (e.g. <sometag <someothertag> > ). This is not HTML or XML compatible, but maybe usefull for implementing tagslibs etc. sometimes.
Add a new HTML comment. Parameters are the same as for AddTag.
AddTag
Add a new HTML tag with start and end tag (e.g. <table> and </table>). Parameters are the same as for AddTag.
Add a new HTML tag which is an endtag for another tag. In opposite to AddTagBlock the end tag can, but need not exists in the source. Parameters are the same as for AddTag. Addtionaly the name of the starttag must be specified.
AddTagBlock
G. Richter (richter@dev.ecos.de)
HTML::Embperl::Syntax
To install HTML::Embperl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Embperl
CPAN shell
perl -MCPAN -e shell install HTML::Embperl
For more information on module installation, please visit the detailed CPAN module installation guide.