| Class | Tilt::RDiscountTemplate |
| In: |
lib/sinatra/tilt.rb
|
| Parent: | Template |
Discount Markdown implementation. See: github.com/rtomayko/rdiscount
RDiscount is a simple text filter. It does not support scope or locals. The +:smart+ and +:filter_html+ options may be set true to enable those flags on the underlying RDiscount object.
# File lib/sinatra/tilt.rb, line 630
630: def evaluate(scope, locals, &block)
631: @output ||= @engine.to_html
632: end
# File lib/sinatra/tilt.rb, line 616
616: def flags
617: [:smart, :filter_html].select { |flag| options[flag] }
618: end