Enrico,
I use Apache::SessionManager as part of my mod_perl framework - it's a great
tool. I also use TT as my templating language. However, I think that some of
these plugins (and this isn't the only one), are going to slowly turn TT into
PHP. Templating with spagehetti code run through it. IMO, when I start seeing
underbar variables in display code, things can only go downhill.
* Enrico Sorcinelli <[EMAIL PROTECTED]> shaped the electrons to say...
> Hi all,
>
> I'm glad to announce first public release of
> 'Template::PLugin::Apache::SessionManager' module.
>
> Template::Plugin::Apache::SessionManager - Session manager Template Toolkit
> plugin
> This Template Toolkit plugin provides an interface to Apache::SessionManager
> module wich provides a session manager for a web application. This module
> allows you to integrate a transparent session management into your TT2 template
> documents (it handles for you the cookie/URI session tracking management of a
> web application)
>
> You can download it from CPAN:
>
>
> http://www.cpan.org/authors/id/E/EN/ENRYS/Template-Plugin-Apache-SessionManager-0.01.tar.gz
>
> SYNOPSIS
> [% USE my_sess = Apache.SessionManager %]
>
> # Getting single session value
> SID = [% my_sess.get('_session_id') %]
>
> # Getting multiple session values
> [% FOREACH s = my_sess.get('_session_id','_session_timestamp') %]
> * [% s %]
> [% END %]
> # same as
> [% keys = ['_session_id','_session_timestamp'];
> FOREACH s = my_sess.get(keys) %]
> * [% s %]
> [% END %]
>
> # Getting all session values
> [% FOREACH s = my_sess.get %]
> * [% s %]
> [% END %]
>
> # Setting session values:
> [% my_sess.set('foo' => 10, 'bar' => 20, ...) %]
>
> # Deleting session value(s)
> [% my_sess.delete('foo', 'bar') %]
> # same as
> [% keys = ['foo', 'bar'];
> my_sess.delete(keys) %]
>
> # Destroying session
> [% my_sess.destroy %]
>
>
> For detailed module info, see:
>
> perldoc Template::PLugin::Apache::SessionManager
>
> by
>
> - Enrico
>
>
> _______________________________________________
> templates mailing list
> [EMAIL PROTECTED]
> http://lists.template-toolkit.org/mailman/listinfo/templates
>
-D
--
C program run, C program crash, C programmer cry.
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates