Can blocks in wrappers be available to outer wrapper templates?

For example, say I have a wrapper template called "outer.tt";

    content;
    PROCESS some_block;

Then in my "template.tt" file I can defined "some_block".

    this is main template
    [% BLOCK some_block %]
        text in block
    [% END %]

So:

    WRAPPER outer.tt;
        PROCESS template.tt;
    END;


The above will display the "text_in_block".

But, say I want to have nested wrappers:

    WRAPPER outer.tt + inner.tt
        PROCESS template.tt;
    END;

And instead of defining "some_block" in template.tt it's defined in
"inner.tt".

Then I get an error "some_block" isn't found.

Is that because of the localization of the stash that WRAPPER does?
Or is there another reason that block isn't visible?




-- 
Bill Moseley
[EMAIL PROTECTED]


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

Reply via email to