Module: Rack::Markdown::HTML

Included in:
Rack::Markdown
Defined in:
lib/rack/markdown/html.rb

Instance Method Summary collapse

Instance Method Details

#bodyObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/rack/markdown/html.rb', line 7

def body
  "    <div id='outer'>\n      <div id='title'>\n        <span id='filename'>\#{path}</span>\n        <span id='version'><a href='https://github.com/tuzz/rack-markdown'>rack-markdown (v\#{self.class.version})</a></span>\n      </div>\n      <div id='inner'>\#{rendered}</div>\n    </div>\n  HTML\nend\n"

#htmlObject



3
4
5
# File 'lib/rack/markdown/html.rb', line 3

def html
  "<html><head>#{external}<style>#{internal}</style></head><body>#{body}</body></html>"
end