The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Konstrukt::Plugin::svar - Access to session values

SYNOPSIS

Usage:

        <!-- set value -->
        <& svar var="var_name" set="value "/ &>
        
        <!-- print out value -->
        <& svar var="var_name" / &>

Result:

        <!-- set value -->
        
        <!-- print out value -->
        value

DESCRIPTION

Plugin to support access to session values

METHODS

prepare

The date is a very volatile data. We don't want to cache it...

Parameters:

  • $tag - Reference to the tag (and its children) that shall be handled.

execute

Checks the passed tag for attributes like var="varname" and set="value".

With only 'var' being passed, the according value of the session variable will be put out.

With additionaly 'set' being passed, the according value of the session will be changed and nothing will be put out.

Parameters:

  • $tag - Reference to the tag (and its children) that shall be handled.

AUTHOR

Copyright 2006 Thomas Wittek (mail at gedankenkonstrukt dot de). All rights reserved.

This document is free software. It is distributed under the same terms as Perl itself.

SEE ALSO

Konstrukt::Plugin, Konstrukt