Module: Rack::Markdown::HTML
- Included in:
- Rack::Markdown
- Defined in:
- lib/rack/markdown/html.rb
Instance Method Summary collapse
Instance Method Details
#body ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/rack/markdown/html.rb', line 7 def body <<-HTML <div id='outer'> <div id='title'> <span id='filename'>#{path}</span> <span id='version'><a href='https://github.com/tuzz/rack-markdown'>rack-markdown (v#{self.class.version})</a></span> </div> <div id='inner'>#{rendered}</div> </div> HTML end |
#html ⇒ Object
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 |