Re: [Templates] xml configuration and variables assignement ?

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

From: Etienne Robillard
Subject: Re: [Templates] xml configuration and variables assignement ?
Date: 06:32 on 30 May 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Randal L. Schwartz wrote:
|>>>>>"Etienne" == Etienne Robillard <erob@xxxxxxxxx.xx> 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
-----BEGIN PGP SIGNATURE-----

iD8DBQFAuYAOfhO/J4JSDfYRArytAJ9Pfftxon6Kod4Vqltkoovotw1lugCeODTR
CRRiaG80uYwRj6KaVtcSNK4=
=kNB+
-----END PGP SIGNATURE-----

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

Re: [Templates] xml configuration and variables assignement ?
merlyn (Randal L. Schwartz) 01:39 on 30 May 2004

Re: [Templates] xml configuration and variables assignement ?
Etienne Robillard 06:32 on 30 May 2004

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