Class: BaseTemplate
- Inherits:
-
Object
- Object
- BaseTemplate
- 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
-
#_body ⇒ Object
Template Method Should be redefined in your own classes.
-
#_head ⇒ Object
Template Method Should be redefined in your own classes.
-
#render ⇒ Object
Public Method Creates the rendered html.
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
#_body ⇒ Object
Template Method Should be redefined in your own classes
125 126 |
# File 'lib/deklarativna.rb', line 125 def _body end |
#_head ⇒ Object
Template Method Should be redefined in your own classes
120 121 |
# File 'lib/deklarativna.rb', line 120 def _head end |
#render ⇒ Object
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 |