[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] load_tmpl question/suggestion


This should work ok with H::T. But, the only way I can make it work with C::A is if I write my own load_tmpl method to distinguish between the first
load from file and second load from scalar. If C::A used H::T's "->new"
method, the source of the template could be passed as a parm on load_tmpl
("filename =>", or "scalarref =>").

What are the chances of getting this more flexible interface to H::T?

I do not think load_tmpl needs to support loading the template from a scalar.

The only extra functionality it provides over the raw call to HTML::Template->new
is that it figures out the path where to load the file from.
It does nothing else.

So if you do not want to load from a file, you should not use this method, but instantiate.
HTML::Template directly.

Cheers,

Thilo


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.