anchor.diff:      to_binding(?l2b(V));
   to_binding(V) ->
       {bind, V}.
  -
  -to_json(V) ->
  -    iolist_to_binary(?JSON_ENCODE(V)).
  
positive.code: 
                      % build new path, reencode query args, eventually convert
                      % them to json
                      Path = lists:append(
                          string:join(Parts, [?SEPARATOR]),
                          case Bindings of
                              [] -> [];
                              _ -> [$?, encode_query(Bindings)]
                          end),
                      
                      % if path is relative detect it and rewrite path
                      case mochiweb_util:safe_relative_path(Path) of
                          undefined ->
  
negative.code:         Rules ->
              % create dispatch list from rules
              DispatchList =  [make_rule(Rule) || {Rule} <- Rules],
              Method1 = couch_util:to_binary(Method),
  
              %% get raw path by matching url to a rule.
              RawPath = case try_bind_path(DispatchList, Method1,
                      PathParts, QueryList) of
                  no_dispatch_path ->
                      throw(not_found);
                  {NewPathParts, Bindings} ->
  