Hi,

I want to use the Catalyst method c.uri_for_action() which accepts one or more 
parameters.

I keep these parameters in an arrayref that looks like:

url => ['/the/path', 'param1', 'param2'],

and it might contain 1 or more elements.

In the template, I need to use the parameters like:

[% c.uri_for_action(url.0, url.1, url.2) %]

But some URLS don't have any parameter and others have more.

Is it possible to do something like:

[% c.uri_for_action(url) %]

If I do this, I get the error that there is no action for ARRAY[E34343A], 
because the arrayref "url" is seen as an array ref, not as a list of elements.

I have also tried to use url.list but it doesn't have any effect.

I have also tried to use url.join(',') but of course it doesn't work, because 
it just creates a string, not a list of elements.

Thanks.

Octavian


_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to