On Mon, Jun 04, 2007 at 10:59:41PM -0700, Bill Moseley wrote:
> In a template I was using:
>
> c.uri_for( 'path', arg1, arg2 );
>
> where arg1 and arg2 are sometimes not defined. In that case uri_for
> generates a url with two trailing slashes.
>
> Is there a reason to keep that behavior or should uri_for pop any
> undefined items off @args?
I think for '' the behaviour's correct.
Not sure about undef, it doesn't strike me as a valid value. Thoughts, anyone?
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director Want a managed development or deployment platform?
Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/