Class: UzuUzu::Layout

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource
Defined in:
lib/uzuuzu-cms/model/info.rb,
lib/uzuuzu-cms/model/page.rb,
lib/uzuuzu-cms/model/layout.rb

Instance Method Summary collapse

Instance Method Details

#render(options = {}, locals = {}) ⇒ Object



28
29
30
# File 'lib/uzuuzu-cms/model/layout.rb', line 28

def render(options={}, locals={})
  UzuUzu::Controller.current.render_engine(self.body, self.format, options, locals)
end