> -----Original Message-----
> From: Perrin Harkins [mailto:[EMAIL PROTECTED]
> Sent: 10 June 2003 18:14
> To: Jon Ross
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Templates] Passing persistent data to many templates
>
>
> On Tue, 2003-06-10 at 12:46, Jon Ross wrote:
> > If I load some data into a hash & pass it to a template, when a
> link from
> > that template/page is pressed how do I access the data again in the
> > subsequent handler/template ?.
> >
> > The reason being - I have a top-level category bar which is
> available on all
> > pages but only requires loading from the database on the initial page.
>
> This has absolutely nothing to do with Template Toolkit, but the
> simplest approach is to cache the data using a module like Cache::Cache
> or MLDBM::Sync.

Apologies if it was an off-topic question - not knowing what the answer is
makes it difficult to know where to ask the question.

My reason for asking here is that I had assumed there was a way of making
template data available to all subsequent templates rather than having to
re-process it (even if from the cache) with every template.



_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to