class Chamomile::Frame

Declarative view DSL. Build a widget tree from view, the renderer calls frame.render(width:, height:) to produce the final string.

def view
  Chamomile::Frame.build do |f|
    f.horizontal do |left, right|
      left.panel("Routes") { left.text @routes }
      right.panel("Detail") { right.text @detail }
    end
    f.status_bar @status
  end
end