perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Nicol <davidni...@gmail.com>
Subject Re: is there a templating system that....
Date Fri, 12 Aug 2005 20:53:36 GMT
On 8/12/05, Jonathan Vanasco <jvanasco@mastersofbranding.com> wrote:

> I want all of my templates in the apache process - they're going to be
> reused constantly and if they need to be changed i have no problem
> doing a graceful restart.

   my $TemplateCache;
   BEGIN{
     opendir TD, "./templates.d";
     for(readdir TD){
        -f "./templates.d/$_" or next;
        $TemplateCache{$_} = slurp "./templates.d/$_"; # there are
several slurpers on cpan
     };
  };


I appear to be well on the way to describing yet another templating engine :)

Mime
View raw message