Module: Markita::Html
- Defined in:
- lib/markita/html.rb
Overview
HTML template :reek:ClassVariable rubocop:disable Style/ClassVars
Constant Summary collapse
- @@header_links =
String.new(HEADER_LINKS)
String.new(NAVIGATION)
Class Method Summary collapse
-
.footer ⇒ Object
category: footer.
-
.header(title) ⇒ Object
category: header.
- .header_links ⇒ Object
- .navigation ⇒ Object
Class Method Details
.footer ⇒ Object
category: footer
32 33 34 35 36 37 |
# File 'lib/markita/html.rb', line 32 def self. <<~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 |
.header_links ⇒ Object
23 |
# File 'lib/markita/html.rb', line 23 def self.header_links = @@header_links |
.navigation ⇒ Object
28 |
# File 'lib/markita/html.rb', line 28 def self. = @@navigation |