Mark Stosberg wrote:
Robert Hicks wrote:
Mark Stosberg wrote:
Robert Hicks wrote:
Mark Stosberg wrote:
Christopher Little wrote:
Your syntax for the filter is correct and your sub doc_filter should
work.
Can you provide a little more code and the error message you're
getting?
I agree with Christopher. Find the spot in the load_tmpl() you are
using
where it calls HTML::Template.  Compare the args it passes to
HTML::Template to calling it directly, and go from there.

It sounds like most don't use the filters options. Would that be
correct? I had not thought about it until the perl.com articles myself.
I have used H::T filters for every project for some years, for better
Dreamweaver compatibility.  I explain more, including the actual code I
use, in this 2004 post:

http://www.jsw4.net/info/listserv_archives/cgiapp/04-01/msg00055.html

I've thought about publishing this as a little H::T Filter module, but
it does seem awfully little to publish and store in it's own file.
However, I realize that would make it easier for people to find and
learn about, and it could be worthwhile for that reason.

  Mark

That tells me much actually but my question is since you are loading
your filter into the load_tmpl "callback" doesn't that make it "global"?

A lot of the related code pre-dates callbacks, and use a CGI::App
sub-class that overrides load_tmpl()

What if I want a filter to only apply to one or two of my runmodes?

Then you could still be able to do that, using the syntax you posted
earlier. It seems it just needs some debugging to find out why the
load_tmpl() arguments aren't getting passed on to HTML::Template as you
expect.


Do you mean debugging my application or debugging CA?

Robert


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to