Re: [Templates] properly accessing variables and content processing with TT2

[prev] [thread] [next] [Date index for 2004/08/24]

From: Perrin Harkins
Subject: Re: [Templates] properly accessing variables and content processing with TT2
Date: 18:12 on 24 Aug 2004
On Mon, 2004-08-23 at 14:27, erob wrote:
> 	For the sake of simplicity, I created a main template, called
> 	"main-perl.tt" which is simply a big [% RAWPERL %] ... [% END %]
> 	directive.

That's usually a bad idea, but you probably know that.

> 	However, for some reasons, handling exceptions of the following
> 	form does not gives back what I want :
> 
> 		if ($stash->get('foo') { 
> 			$output .= "more foo";
> 			$output .= $context->process('foo.tt');
> 		}
> 
> 		# XXX Cannot get 'blurb' because 'foo' still exists..

I have no idea what you mean by this.  Can you try explaining it in more
detail?

- Perrin


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

(message missing)

Re: [Templates] properly accessing variables and content processing with TT2
Perrin Harkins 18:12 on 24 Aug 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52