# Copyright (c) 2006 bivio Software, Inc. All Rights Reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: URI.bunit,v 1.9 2011/04/13 00:03:05 nagler Exp $ Widget({ setup_render => sub { req()->put(query => {wow => 1}); return; }, }); [ [{task_id => 'SITE_ROOT'}] => '/', [{task_id => 'SITE_ROOT'}, {format_method => 'format_http'}] => qr{^http://[^/]+/$}s, [{task_id => 'SITE_ROOT', format_method => 'format_http'}] => qr{^http://[^/]+/$}s, [{format_uri_hash => {task_id => 'SITE_ROOT'}}] => '/', [{task_id => 'SITE_ROOT'}, {anything => ''}] => '/', [{task_id => [sub {'SITE_ROOT'}]}] => '/', [{task_id => 'SITE_ROOT', query => {'ListQuery.this' => 1}}] => '/?t=1', ['SITE_ROOT'] => '/', [{ task_id => 'SITE_ROOT', query => [sub {{x => 'y'}}], }] => '/?x=y', [{uri => '/abc'}] => '/abc', [{ uri => '/abc', query => [sub {{x => 'y'}}], }] => '/abc?x=y', [{ control => 0, uri => '/abc', query => [sub {{x => 'y'}}], }] => '', ];