Class: Writecast::Page_view
Instance Method Summary
collapse
Methods inherited from Base_view
#content, #render_body_top_inner, #render_footer, #render_head, #render_menu, #render_post_summary
Instance Method Details
#render_breadcrumb ⇒ Object
4
5
6
|
# File 'lib/writecast/views/page.rb', line 4
def render_breadcrumb
p text SEPARATOR + @doc.title
end
|
#render_content_inner ⇒ Object
8
9
10
11
12
13
14
15
16
|
# File 'lib/writecast/views/page.rb', line 8
def render_content_inner
div(:id => 'meta') {p {text "last modified: #{@doc.time}"}}
div :id => 'summary' do
rawtext Kramdown::Document.new(@doc.summary, KRAMDOWN_OPTS).to_html
end
div :id => 'body' do
rawtext Kramdown::Document.new(@doc.body, KRAMDOWN_OPTS).to_html
end
end
|