   root: (controller) ->
     @match('/',controller: controller)
   
-Pinkman.router = PinkmanRouter+Pinkman.router = PinkmanRouter
+Pinkman.path_helpers = []
  handleNamespacedController: (namespace) ->
    @set('controller',"#{namespace.replace(/\//g,'-')}-#{@controller}") if namespace and @controller and not (new RegExp("^#{namespace}")).test(@controller)

  
# Routes collection. Have the capability to search a string through routes and storage all defined routes. Used once in Pinkman.routes
class window.PinkmanRoutes extends Pinkman.collection

      # handle namespaced controller name (add namespace prefix)
      route.handleNamespacedController(@_namespace)
      
      route.definePathHelper()
      
      if object? and typeof object == 'object' 
        route.set('blank',no) if (object.keep? and object.keep) or (object.blank? and not object.blank)
        route.set('yield',object.container || object.yield )
      Pinkman.routes.push(route)
      return(route)
      
