Home : Documentation : Embperl::Syntax
Google Web perl.apache.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
 
DBIx::Recordset
 
Installation
 
Download
 
Support
 
Changes
 
Wiki
 
More infos
 
Add info about Embperl
 
Login

    Stable 2.4.0
    Beta 2.5.0_3
Support the development of Embperl! More...
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-2012 Gerald Richter / ecos gmbh