Class: Henshin::Layoutor

Inherits:
Plugin
  • Object
show all
Defined in:
lib/henshin/plugin.rb

Overview

Layoutor is the plugin type for things like liquid

Examples:


class MyLayoutPlugin < Henshin::Layoutor
  def generate(content, data)
    MyLayout.do_stuff(content).render(data)
  end
end

Direct Known Subclasses

LiquidPlugin

Instance Attribute Summary

Attributes inherited from Plugin

#config, #extensions, #priority

Instance Method Summary collapse

Methods inherited from Plugin

#<=>, #initialize, subclasses

Constructor Details

This class inherits a constructor from Henshin::Plugin

Instance Method Details

#generate(content, data) ⇒ String

This is the method called when rendering content

Parameters:

  • content (String)

    to be rendered

  • data (Hash)

    to be put into the content

Returns:



95
96
# File 'lib/henshin/plugin.rb', line 95

def generate( content, data )
end