Module: Marklar

Defined in:
lib/marklar.rb,
lib/marklar/version.rb

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.call(env) ⇒ Object



10
11
12
13
# File 'lib/marklar.rb', line 10

def call env
  req = Rack::Request.new(env)
  [200, {'Content-Type' => "text/html" }, [@markdown.render(req[:data].to_s)]] if req.post?
end