Embperl - building dynamic websites with Perl


DESCRIPTION
[ Content ] [ Next: Defining your own Syntax >> ]

Embperl::Syntax provides a base class from which all custom syntaxes should be derived. Currently Embperl comes with the following derived syntaxes:

 

EmbperlHTML

 

all the HTML tag that Embperl recognizes by default

 

EmbperlBlocks

 

all the [ ] blocks that Embperl supports

 

Embperl

 

The default syntax; is derived from EmbperlHtml and EmbperlBlocks

 

ASP

 

<% %> and <%= %>, see perldoc Embperl::Syntax::ASP

 

SSI

 

Server Side Includes, see perldoc Embperl::Syntax::SSI

 

Perl

 

File contains pure Perl (similar to Apache::Registry), but can be used inside EmbperlObject

 

Text

 

File contains only Text, no actions is taken on the Text

 

Mail

 

Defines the <mail:send> tag, for sending mail. This is an example for a taglib, which could be a base for writing your own taglib to extent the number of available tags

 

POD

 

Parses POD out of any file and creates a XML tree similar to pod2xml, which can be formatted by XSLT afterwards.

You can choose which syntax is used inside your page, either by the EMBPERL_SYNTAX configuration directive, the syntax, parameter to Execute or the [$ syntax $] metacommand.

You can also specify multiple syntaxes e.g.

    PerlSetEnv EMBPERL_SYNTAX "Embperl SSI"

    Execute ({inputfile => '*', syntax => 'Embperl ASP'}) ;

The syntax metacommand allows you to switch the syntax or to add or subtract syntaxes e.g.

    [$ syntax + Mail $]

will add the Mail taglib so the <mail:send> tag is available after this line.

    [$ syntax - Mail $]

now the <mail:send> tag is unknown again

    [$ syntax SSI $]

now you can only use SSI commands inside your page.


[ Content ] [ Next: Defining your own Syntax >> ]


© 1997-2023 Gerald Richter / actevy