tst

Ruby code posted by ODM
created at 24 Dec 12:17, updated at 01 Jan 16:31

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#Very cool
module Admin
    class Pages
        include Presto::Api
        http.map
    end
    class News
        include Presto::Api
        http.map :news
        http.use Rack::ShowExceptions
        view.engine :Haml
    end
end

app = Presto::App.new
app.mount Admin, '/cms' do
    http.use Rack::CommonLogger
    view.engine :Erubis
end
362 Bytes in 4 ms with coderay