Re: [Templates] Apache::Template & plugin path problems
[prev]
[thread]
[next]
[Date index for 2004/05/14]
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@xxxxxxxxx.xxx.xxxxxxxxxx.xxx for more info.
--8323328-1605568667-1084544614=:10358
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Fri, 14 May 2004, Andy Wardley wrote:
> You could do this instead:
>
> $input = $context->insert($input) unless $input =~ /</;
>
> The $context->insert($filename) does the job of finding the file
> in the INCLUDE_PATH and returning the content.
Darn you and super-flexible templating system. How am I supposed to write
any perl code around here ;-)
And darn me for not having the badger book to hand when trying to write TT
patches :-)
FWIW, here's an amended patch...
Simon.
--
"Time is an illusion, lunchtime doubly so"
--8323328-1605568667-1084544614=:10358
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="XML-Simple-v2.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0405141523340.10358@xxxxx.xxxx.xxxxxxxxxxxxxxxx.xxx>
Content-Description:
Content-Disposition: attachment; filename="XML-Simple-v2.patch"
LS0tIFNpbXBsZS5vcmlnCTIwMDQtMDUtMTQgMTI6NTg6NTIuMDAwMDAwMDAw
ICswMTAwDQorKysgU2ltcGxlLnBtCTIwMDQtMDUtMTQgMTU6MjA6MTAuMDAw
MDAwMDAwICswMTAwDQpAQCAtNDQsNiArNDQsOCBAQA0KICAgICBteSAkaW5w
dXQgICA9IHNoaWZ0Ow0KICAgICBteSAkYXJncyAgICA9IHJlZiAkX1stMV0g
ZXEgJ0hBU0gnID8gcG9wKEBfKSA6IHsgfTsNCiANCisgICAgJGlucHV0ID0g
JGNvbnRleHQtPmluc2VydCgkaW5wdXQpIHVubGVzcyAoICRpbnB1dCA9fiAv
PC8gKTsNCisgICAgDQogICAgIFhNTGluKCRpbnB1dCwgJSRhcmdzKTsNCiB9
DQogDQo=
--8323328-1605568667-1084544614=:10358--
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates