anchor.diff:              (_) -> true
           end, Args),
       case dict:find(Name1, UriLookup) of
  -        {ok, Patterns} -> make_url_for1(Args1, Patterns, Escape, undefined);
  +        {ok, Patterns} -> make_url_for1(Args1, Patterns, Escape, undefined, Defaults);
           error -> undefined
       end.
   
   
   %% @doc Try to match all patterns with the arguments
  -make_url_for1(_Args, [], _Escape, undefined) ->
  +make_url_for1(_Args, [], _Escape, undefined, _Defaults) ->
       undefined;
  -make_url_for1(Args, [], Escape, {QueryStringArgs, Pattern}) -> 
  +make_url_for1(Args, [], Escape, {QueryStringArgs, Pattern}, Defaults) -> 
       ReplArgs =  fun 
                       ('*') -> proplists:get_value(star, Args);
  -                    (V) when is_atom(V) -> mochiweb_util:quote_plus(proplists:get_value(V, Args));
  +                    (V) when is_atom(V) -> mochiweb_util:quote_plus(arg_value(V, Args, Defaults));
                       (S) -> S
                   end,
       UriParts = lists:map(ReplArgs, Pattern), 
  
positive.code:                         Args1,
                          Qs)
      end.
  
negative.code: 
  
  %% @spec url_for(atom(), Context) -> iolist()
  %% @doc Construct an uri from a named dispatch, assuming no parameters. Use html escape.
  url_for(Name, #context{dispatcher=Dispatcher} = Context) ->
      gen_server:call(Dispatcher, {'url_for', Name, [], default_args(Context), html}).
  
  
  %% @spec url_for(atom(), Args, Context) -> iolist()
  %%        type Args = PropList
  %% @doc Construct an uri from a named dispatch and the parameters. Use html escape.
  url_for(Name, Args, #context{dispatcher=Dispatcher} = Context) ->
      Args1 = append_extra_args(Args, Context),
      gen_server:call(Dispatcher, {'url_for', Name, Args1, default_args(Context), html}).
  
  
  %% @spec url_for(atom(), Args, atom(), Context) -> iolist()
  %%        type Args = PropList
  %% @doc Construct an uri from a named dispatch and the parameters
  url_for(Name, Args, Escape, #context{dispatcher=Dispatcher} = Context) ->
      Args1 = append_extra_args(Args, Context),
      gen_server:call(Dispatcher, {'url_for', Name, Args1, default_args(Context), Escape}).
  
  
  %% @spec hostname(Context) -> iolist()
  