Class: UzuUzu::Contents

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

Instance Method Summary collapse

Instance Method Details

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



31
32
33
34
35
# File 'lib/uzuuzu-cms/model/contents.rb', line 31

def render(options={}, locals={})
  contents = "<div id=\"contents_#{self.id}\">\n"
  contents += UzuUzu::Controller.current.render_engine(self.body, self.format, options, locals)
  contents += "\n</div>"
end