Last active
August 29, 2015 14:02
-
-
Save diegosouza/1103eed519afe18d988c to your computer and use it in GitHub Desktop.
single file lotus app running
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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