2010-07-23 20:09:54 +00:00
|
|
|
module Models
|
|
|
|
module Extensions
|
|
|
|
module Page
|
2010-06-01 00:06:46 +00:00
|
|
|
module Render
|
|
|
|
|
|
|
|
def render(context)
|
|
|
|
self.template.render(context)
|
|
|
|
|
2010-08-08 13:16:32 +00:00
|
|
|
# FIXME : old code based on layout / parts
|
2010-08-08 11:30:27 +00:00
|
|
|
# self.template.render(context)
|
|
|
|
#
|
|
|
|
# if self.layout
|
|
|
|
# self.layout.template.render(context)
|
|
|
|
# else
|
|
|
|
# ::Liquid::Template.parse("{{ content_for_layout }}").render(context)
|
|
|
|
# end
|
2010-06-01 00:06:46 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|