namespace '/' do get '' do items = Item.reverse(:updated_at).limit(10).all() licenses = License.reverse(:updated_at).limit(10).all() erb :index, :locals => { :title => 'Dashboard', :items => items, :licenses => licenses } end end