Module: Markita::Html

Defined in:
lib/markita/html.rb

Overview

HTML template :reek:ClassVariable rubocop:disable Style/ClassVars

Constant Summary collapse

String.new(HEADER_LINKS)
String.new(NAVIGATION)

Class Method Summary collapse

Class Method Details

category: footer



32
33
34
35
36
37
# File 'lib/markita/html.rb', line 32

def self.footer
  <<~FOOTER
    </body>
    </html>
  FOOTER
end

.header(title) ⇒ Object

category: header



11
12
13
14
15
16
17
18
19
20
# File 'lib/markita/html.rb', line 11

def self.header(title)
  <<~HEADER
    <!DOCTYPE html>
    <html>
    <head>
    <title>#{title}</title>
    #{@@header_links}</head>
    <body>
  HEADER
end


23
# File 'lib/markita/html.rb', line 23

def self.header_links = @@header_links


28
# File 'lib/markita/html.rb', line 28

def self.navigation = @@navigation