Re: [Templates] template equivalent of strict.pm

[prev] [thread] [next] [Date index for 2004/05/07]

From: darren chamberlain
Subject: Re: [Templates] template equivalent of strict.pm
Date: 14:09 on 07 May 2004
--9Ek0hoCL9XbhcSqy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Jamie Echlin <jamie.echlin at ubs.com> [2004/05/07 10:57]:
> I'm trying to help a TT author, I've been encouraging them to use the
> Data::Dumper plugin. However they were doing
>=20
> dumper.dump (obj)
>=20
> neglecting the capital D. In this case TT just ignores it. They had
> also mistyped one of the callback functions I provide, again, it's
> just ignored. Is it possible to make process () treat these as errors?

For standard plugins, the name they are accessible as depends on how you
USE them.  So, if you stuck:

  [% USE dumper %]

in the template instead of (or possibly in addition to)

  [% USE Dumper %]

then dumper.dump will work.

(darren)

--=20
I'm astounded by people who want to 'know' the universe when it's hard
enough to find your way around Chinatown.
    -- Woody Allen

--9Ek0hoCL9XbhcSqy
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAm5iZzsinjrVhZaoRAq7hAJoDPNQV4aYKISg8Dt8XvatbjWrW6QCfRXvu
2THEJ3wS0ZhrJCjOIbTXds4=
=9ncJ
-----END PGP SIGNATURE-----

--9Ek0hoCL9XbhcSqy--

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

Re: [Templates] template equivalent of strict.pm
darren chamberlain 14:09 on 07 May 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52