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...
Defining your own Syntax
[ << Prev: DESCRIPTION ] [ Content ] [ Next: Methods >> ]

If you want to define your own syntax, you have to derive a new class from one of the existing ones and extent it with new tags/functionality. The best thing is to take a look at the syntax classes that comes with Embperl. (inside the directory Embperl/Syntax/).

For example if you want to add new html tags, derive from Embperl::Syntax::HTML, if you want to add new metacommands derive from Embperl::Syntax::EmbperlBlocks.

Some of the classes define addtionaly methods to easily add new tags. See the respective pod file, which methods are available for a certain class.

Embperl::Syntax defines the basic methods to create a syntax:


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

© 1997-2012 Gerald Richter / ecos gmbh