Embperl - building dynamic websites with Perl


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 additional 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-2023 Gerald Richter / actevy