-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Etienne Robillard wrote:
| Randal L. Schwartz wrote:
| |>>>>>"Etienne" == Etienne Robillard <[EMAIL PROTECTED]> writes:
| |
| |
| | Etienne> So right now, I used to call variables in list-context, as
| explained in
| | Etienne> Randal's article from perlmonks:
| | Etienne> http://www.perlmonks.org/index.pl?node_id=218480
| |
|
| | Oddly enough, 218480 contains my name, but wasn't written by me.
|
| Err opps, you're right, that article was from grantm ;)
|
| | Is there something else you were trying to reference?
| |
|
| Hm, the whole thing (imho) might be to coerce existing values from an
| xml source file throught the process() directive into the
| Template::Toolkit namespace.
|
| However, this might bring problems, such as when variables are
| interpolated or when in use under [% foo %] blocks :)
|
| Maybe something like:
|     my $vars = {
|         quork    =>    $some_variable
|     }
| ...
| could do the trick, assuming that `$some_variable' is an object for a
| class method such as XMLin() (XML::Simple).
|
|     erob


Hum, sleeping did clarify things quite a bit :) So I guess the best thing to do is simply not to extend any modules such as Template::Plugin::XML::Simple (which I have investigated for this purpose - ditto for Template::Parser) nor it's a good idea to try parsing stuff for input instead of using process() (as for output, in the form of a Template::Document). Surely the latter option is the Right Thing to do..

Thanks,
(I hoope it was good entertainment however ;)

erob







-----BEGIN PGP SIGNATURE-----

iD8DBQFAu7s3fhO/J4JSDfYRAg9hAKCxB75vIVPH0BFrxlMPqRCbfFJyHQCgq07j
YvhgT0uXsnlMGs8CJw+D2QA=
=N0/9
-----END PGP SIGNATURE-----

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to