Title: RE: [Templates] Processing a plugins output?

The short answer is that there is always more than 1 way to do it.

In a plugin you have access to the context object.  You can call process on the context object and pass it the text to be processed as the first argument as a reference.

S



> -----Original Message-----
> From: J. Shirley [mailto:[EMAIL PROTECTED]]
> Sent: 15 March 2005 15:14
> To: Simon Matthews
> Cc: [email protected]
> Subject: Re: [Templates] Processing a plugins output?
>
>
> Thanks for the headsup -- Is that the only method to do it? 
> I deally I would just like to place the tag (it's a plugin to
> interface with a
> CMS) like "[% content("foo") %]" and have it automatically do it?
>
> Sorry for the basic questions, still learning TT.
>
>
> On Tue, 15 Mar 2005 15:00:51 -0000, Simon Matthews
> <[EMAIL PROTECTED]> wrote:
> > 
> >
> > You are looking for the eval filter.
> >
> >
> http://www.template-> toolkit.org/docs/plain/Manual/Filters.html#eval_ev
> > altt
> >
> > HTH
> >
> > S
> >
> > > -----Original Message-----
> > > From: J. Shirley [mailto:[EMAIL PROTECTED]]
> > > Sent: 15 March 2005 14:23
> > > To: [email protected]
> > > Subject: [Templates] Processing a plugins output?
> > >
> > >
> > > Hey guys,
> > > Sorry for this question, I'm sure it gets posted rather
> > > frequently but I couldn't find a way to search the archives. 
> > > I'm trying to build a plugin that will have output that I
> > > want to have processed.
> > >
> > > So, if the plugin outputs "This is my [% foo_variable %]" how
> > > do I get the output of the template to be processed accordingly?
> > >
> > > Thanks,
> > > -J
> > >
> > > _______________________________________________
> > > templates mailing list
> > > [email protected]
> > > http://lists.template-> toolkit.org/mailman/listinfo/templates
> > >
> >
> >
>

Reply via email to