> From: Luke Meyer <[EMAIL PROTECTED]> > Subject: [Templates] Passing a BLOCK to a plugin > ...skipped... > Problems with the obvious approaches I've already considered: > 1) Extract the "errmsg" block to a file and pass the file > name. Sure, > that works, but it kind of sucks. I shouldn't have to go to another > file to see what I'm working with, if I don't want it that way.
Well, why don't just pass block name as a string? E.g. [% USE myform = ParamShuttle(form.user_create, template = "errmsg"); %] In plugin code you will be able to call $context->process( $template_name ) passing that literal block name. -- Sergey Martynoff _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
