Class: Refinery::PagePartDrop
- Inherits:
-
Clot::BaseDrop
- Object
- Clot::BaseDrop
- Refinery::PagePartDrop
- Defined in:
- app/liquid/drops/page_part_drop.rb
Instance Method Summary collapse
Instance Method Details
#body ⇒ Object
13 14 15 16 |
# File 'app/liquid/drops/page_part_drop.rb', line 13 def body liquid = Liquid::Template.parse @source.body liquid.render(@context.environments[0]) end |
#key ⇒ Object
9 10 11 |
# File 'app/liquid/drops/page_part_drop.rb', line 9 def key @key ||= @source.title.underscore.split.join("_") end |
#page_id ⇒ Object
5 6 7 |
# File 'app/liquid/drops/page_part_drop.rb', line 5 def page_id @page_id ||= @source.refinery_page_id end |