Class: Broadway::Liquid

Inherits:
Object
  • Object
show all
Defined in:
lib/broadway/filters/liquid.rb

Class Method Summary collapse

Class Method Details

.transform(payload, layouts) ⇒ Object



5
6
7
8
9
10
# File 'lib/broadway/filters/liquid.rb', line 5

def transform(payload, layouts)
  info = { :filters => [], :registers => { :site => self.site } }
  # render and transform content (this becomes the final content of the object)
  payload["content_type"] = self.content_type
  self.output = Liquid::Template.parse(self.content).render(payload, info)
end