Class: Manuscript::Page

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/manuscript/page.rb

Instance Method Summary collapse

Instance Method Details

#to_htmlObject



11
12
13
14
15
16
17
# File 'lib/manuscript/page.rb', line 11

def to_html
  if template
    template.render({'contents' => RDiscount.new(contents).to_html})
  else  
    RDiscount.new(contents).to_html
  end
end