def sub_context id,ref,attribs={}
      @sub_contexts << ref
      self.elements[id] = {
        attributes: attribs,
        type: :sub_context,
        content: ref,
      }
    end
def sub_context id,ref,attribs={}
      @sub_contexts << ref
      self.elements[id] = {
        attributes: attribs,
        type: :sub_context,
        content: ref,
      }
    end
mount a context as a sub context here

 @param [Symbol] id of component to mount context to
 @param [Symbol] ref of context to be mounted
 @param [{Symbol => String,Number,Boolean}] list of attributes to attach to tag