Module: Roda::RodaPlugins::InjectERB::InstanceMethods

Defined in:
lib/roda/plugins/inject_erb.rb

Instance Method Summary collapse

Instance Method Details

#inject_erb(value) ⇒ Object

Inject into the template output for the template currently being rendered.



25
26
27
# File 'lib/roda/plugins/inject_erb.rb', line 25

def inject_erb(value)
  instance_variable_get(render_opts[:template_opts][:outvar]) << value.to_s
end