 
   # Render a partial (sub) view
   #
-  # @param [Class] clazz    class name of view to render
-  # @param [Object] data    context data for partial
+  # @param [Class] clazz      class name of view to render
+  # @param [Object] data      context data for partial
+  # @param [String] selector  optional CSS selector into which the partial view will be rendered
   #
   # @return [String] rendered template data (HTML)
-  partial: (clazz, data) ->
+  partial: (clazz, data, selector) ->
     v = @create_partial(clazz, data)
+    if selector?
+      v.setElement( @$(selector) )
+      @log v.el
     v.render()
     return v
+
+  partial_html: (tpl, data) ->
+    if _.isString(tpl)
+      tpl = new Template(@jst(tpl))
+    tpl.render(data)
 
   create_partial: (clazz, data) ->
     data ||= {}

    return @

  # Lookup @template in the global JST hash
  jst: ->
    JST[ @app.template_root + @template ]

  # Create a Template object for the configured @template
  #


    @views.push(v)
    return v

  html: (args...) ->
    @$el.html(args...)

  set: (key, val) ->
    @_data.push(val)
