Home : Documentation : Embperl::Syntax : HTML
Google Web www.embperl.org

 
Home
 
Features
 
Introduction
 
Documentation
 
README
 
README.v2
 
Configuration
 
Embperl
 
Embperl::Object
 
Embperl::Form::Validate
 
Embperl::Syntax
 
Embperl
 
EmbperlBlocks
 
EmbperlHTML
 
HTML
 
ASP
 
SSI
 
Perl
 
POD
 
Text
 
RTF
 
Mail
 
Embperl::Recipe
 
Embperl::Mail
 
1.3.6 documentation
 
Installation
 
Download
 
Support
 
Changes
 
More infos
 
Add info about Embperl
 
Login

    Stable 2.4.0
    Beta 2.5.0_3
Support the development of Embperl! More...
Methods
[ << Prev: DESCRIPTION ] [ Content ] [ Next: Author >> ]

Embperl::Syntax::HTML defines the following methods:



Embperl::Syntax::HTML -> new / $self -> newtop

Create a new syntax class. This method should only be called inside a constructor of a derived class.



AddTag ($tagname, $attrs, $attrsurl, $attrsnoval, $procinfo, $taginfo, $addsess)top

Add a new HTML tag.

 

$tagname

 

Name of the HTML tag

 

$attrs

 

List of attributes that should be parsed out.

 

$attrsurl

 

List of attributes that should be parsed out. Any output inside the attribute value is url escaped.

 

$attrsnoval

 

List of attributes that should be parsed out and doesn't contain a value.

 

$procinfo

 

Processor info. See Embperl::Syntax for a definition of procinfo.

 

$taginfo

 

Addtional tag definitions. See Embperl::Syntax for more infos.

 

$addsess

 

If set to 1 session id will be added to attributes passed via $attrsurl. If set to 2 a hidden input tag with the session id will be added.



AddTagInside ($tagname, $attrs, $attrsurl, $attrsnoval, $procinfo)top

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 useful for implementing tagslibs etc. sometimes.



AddComment ($tagname, $attrs, $attrsurl, $attrsnoval, $procinfo)top

Add a new HTML comment. Parameters are the same as for AddTag.



AddTagBlock ($tagname, $attrs, $attrsurl, $attrsnoval, $procinfo)top

Add a new HTML tag with start and end tag (e.g. <table> and </table>). Parameters are the same as for AddTag.



AddTagWithStart ($tagname, $startname, $attrs, $attrsurl, $attrsnoval, $procinfo)top

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.


[ << Prev: DESCRIPTION ] [ Content ] [ Next: Author >> ]

© 1997-2012 Gerald Richter / ecos gmbh