Module: Sinatra::SimpleRDiscount
- Defined in:
- lib/sinatra/simplerdiscount.rb
Overview
Just converts markdown to HTML
Instance Method Summary collapse
Instance Method Details
#markdown(template, options = {}) ⇒ Object
13 14 15 16 |
# File 'lib/sinatra/simplerdiscount.rb', line 13 def markdown(template, ={}) output = render :md, template, '<div>'+output+'</div>' end |