       React.DOM.li null,
         React.DOM.span({onClick: @handle_click},
           React.DOM.i {className: toggle}
-          "#{@props.name}")
+          @props.children)
           React.DOM.div {className: 'child'}, child
     handle_click: ->
       path = @props.node.path

        @props.toggle path

  TreeComponent = React.createClass
    statics:
      subpath: (path) ->
        if path == ''
          '*'
        else
          "#{path}.*"

    getDefaultProps: ->
      root: ''

        @close path

    value: (path) ->
      @state.cache[path]?.inspect()?.value

    open: (path) ->
      tree_state = _.clone @state.tree_state
