Class: UzuUzu::Contents
- Inherits:
-
Object
- Object
- UzuUzu::Contents
- 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(={}, locals={}) contents = "<div id=\"contents_#{self.id}\">\n" contents += UzuUzu::Controller.current.render_engine(self.body, self.format, , locals) contents += "\n</div>" end |