Class: BaseTemplate

Inherits:
Object
  • Object
show all
Includes:
Deklarativna
Defined in:
lib/deklarativna.rb

Overview

Public Class Base Class for Template Creation using Deklarativna Class Based Model If you need any special implementation, you can create your own using this one as example, or just extend this one

Instance Method Summary collapse

Methods included from Deklarativna

#comment, #comment_renderable_string, #css, included, #javascript, #nesting_renderable_string, #renderable_string, #single_tag_renderable_string, #xml_double_tag, #xml_single_tag

Instance Method Details

#_bodyObject

Template Method Should be redefined in your own classes



125
126
# File 'lib/deklarativna.rb', line 125

def _body
end

#_headObject

Template Method Should be redefined in your own classes



120
121
# File 'lib/deklarativna.rb', line 120

def _head
end

#renderObject

Public Method Creates the rendered html



107
108
109
110
111
112
113
114
115
116
# File 'lib/deklarativna.rb', line 107

def render
  html {[
    head {
      _head
    },
    body {
      _body
    }
  ]}
end