On Mon, Jun 25, 2007 at 11:35:31AM +0100, Andy Wardley wrote:
> Bill Moseley wrote:
> >Can blocks in wrappers be available to outer wrapper templates?
>
> No.
>
> >Is that because of the localization of the stash that WRAPPER does?
>
> Yes.
I often wonder if localization is needed by my WRAPPERs.
> The only way I can think of (off the top of my head) to do what you want
> would be to move the BLOCKS defined in inner.tt into a separate template
> which you PRE_PROCESS (or have it PROCESSed by one you're already
> PRE_PROCESSing).
Or just in separate template files.
page.text_for_outer_wrapper = 'path/to/file.tt';
It's easier to understand where the text is coming from when its name
is a path to a file than just a block name that was included via
PRE_PROCESS. (Although I guess I could still name the blocks using a
scheme that describes where its located even if pre-processed.)
--
Bill Moseley
[EMAIL PROTECTED]
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates