> I often find myself with a site where every page starts off with:
>
> [! Execute('common-set-of-routines') !]
>
> Is there anyway (other than Embperl::Object, which I may already be
> using on portions of the site for other things) to configure this to
> happen automatically?The new application object introduced in 2.0b6 is excatly what fit here. You can use it either together with Embperl::Object, in which case it is searched like any other file (use EMBPERL_OBJECT_APP) or/and you can define it for use in "normal" Embperl (use EMBPERL_APP_HANDLER_CLASS). It's init method is called at the start of every request (when %fdat and %udat etc. already available) and you can define any common need subs here or do your Execute from it. Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131 WWW: http://www.ecos.de Fax: +49 6133 925152 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
