Class: HtmlTemplate
- Inherits:
-
Object
- Object
- HtmlTemplate
- Defined in:
- lib/html-template.rb
Instance Method Summary collapse
Instance Method Details
#header_part ⇒ Object
20 21 |
# File 'lib/html-template.rb', line 20 def header_part end |
#main_part ⇒ Object
22 23 |
# File 'lib/html-template.rb', line 22 def main_part end |
#template(opts = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/html-template.rb', line 4 def template opts = {} @opts = opts html(:xmlns => "http://www.w3.org/1999/xhtml") { head { title @args[:title] if @args[:title] } body { div(:id => "header") { header_part } div(:id => "main") { main_part } } } end |