Brent Royal-Gordon > WWW-Kontent > WWW::Kontent::Class::Kode

Download:
WWW-Kontent-0.02.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

WWW::Kontent::Class::Kode - Kode page class for Kontent

SYNOPSIS ^

        # Attributes
        kontent:class=kode
        kontent:version=1
        kode:driverbody=Driver code
        kode:adapterbody=Adapter code

DESCRIPTION ^

Kode is a Kontent class allowing you to write a page with unique behavior. In essence, it can be used to implement the 'view' driver and adapter for a one-shot page class. The edit mode can be used to modify the code, and the details of compilation errors are displayed.

Please note that the Kode class can be used to run arbitrary code on the server. You should probably secure Kode pages very carefully.

Attributes

kode:driverbody

The code to be run for the driver in 'view' mode.

kode:adapterbody

The code to be run for the adapter in 'view' mode. As with all adapters, this should return a skeleton (WWW::Kontent::Skeleton).

Modes

view, history, edit

SEE ALSO ^

WWW::Kontent, WWW::Kontent::Foundation

syntax highlighting: