> > I think that Larry Wall implements 'exists' function not without
> > reason...
>
> You can add the 'exists' virtual hash method like so:
>
> $Template::Stash::HASH_OPS->{ exists } = sub {
> my ($hash, $item) = @_;
> return exists $hash->{ $item };
> }
Thank you very much!
> Then in your template:
>
> [% IF myhash.exists('keyname') %]
> ...
> [% END %]
>
> This is probably one of those methods that should be pre-defined in
the
> core.
Totally agreed! I don't understand why 'defined' method is implemented
and 'exists' - not.
And another question... (Huh, I did not response on it in mod_perl
list)
I will be happy to hear some feedback from mod_perl guru about module,
which was developed by my team.
It's another framework and Matt Sergeant compared it with Mason
although it is much simpler and we purposed
other aims.
Our target was to ease implementing web application as Apache handler.
We think that URI processing and translating is a task of application,
at any case for
projects such large e-shop or central online information portal of
region.
Another aim was to integrate TemplateToolkit usage as standart output
technique - it is excellent app, although descendant from our module
can return another status (redirect and others) or generate output via
another way freely.
Our module helps to maintain high performance web application as pure
Apache handler is fast and easy. Programmer focuses on business
tasks of site only.
http://www.webzavod.ru/software/Apache-Site.tar.gz
We use it for many our projects and builded about 15 web sites with it
and question is -
is there future for such module?
> _______________________________________________
> templates mailing list
> [EMAIL PROTECTED]
> http://www.template-toolkit.org/mailman/listinfo/templates
>
>