Skip to content

Instantly share code, notes, and snippets.

@diegosouza
Last active August 29, 2015 14:02
Show Gist options
  • Save diegosouza/1103eed519afe18d988c to your computer and use it in GitHub Desktop.
Save diegosouza/1103eed519afe18d988c to your computer and use it in GitHub Desktop.
single file lotus app running
require 'lotus'
module OneFile
class Application < Lotus::Application
configure do
routes do
get '/', to: 'home#index'
end
end
end
module Controllers
class Home
include Lotus::Controller
action 'Index' do
def call(params)
end
end
end
end
module Views
class Home
class Index
include Lotus::View
def render
'Hello'
end
end
end
end
end
run OneFile::Application.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment