Oh boy are you in luck... look at the WRAPPER directive. man Template::Manual::Directives
You're going to like what you see. --mark > -----Original Message----- > From: Shannon, Bryan [mailto:[EMAIL PROTECTED] > Sent: Friday, February 28, 2003 1:07 PM > To: '[EMAIL PROTECTED]' > Subject: [Templates] Separate templates within a single file? > Right now, all three files get globbed together to form a > single template. > Now this works perfectly fine, except for the fact that > "before" and "after" > have to be maintained in separate files. This is what the > template looks > like when I glob them together just before processing: > > What I'm trying to do is give the user a good (read: > "single") place to put > a "[% USE mycustomlibrary %]" in their file, but have it be > in the same > physical file as the "do_my_loop" template, but without > actually having the > processor execute the "USE" each time the do_my_loop is evaluated... > _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
