Module: Awestruct::Markdownable

Included in:
MarkdownFile
Defined in:
lib/awestruct/markdownable.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) content



12
13
14
15
# File 'lib/awestruct/markdownable.rb', line 12

def content
  context = site.engine.create_context( self )
  render( context )
end

- (Object) render(context)



6
7
8
9
10
# File 'lib/awestruct/markdownable.rb', line 6

def render(context)
  rendered = ''
  doc = RDiscount.new( context.interpolate_string( raw_page_content ) )
  doc.to_html
end