Class: MarkdownPreviewer::App

Inherits:
Object
  • Object
show all
Defined in:
lib/markdown_previewer.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



28
29
30
31
32
# File 'lib/markdown_previewer.rb', line 28

def call(env)
  req = Rack::Request.new(env)

  [200, {'Content-Type' => 'text/html'}, [render(req.params['src'])]]
end