lib/atome/renderers/renderer.rb in atome-0.5.2.8 vs lib/atome/renderers/renderer.rb in atome-0.5.3.2
- old
+ new
@@ -2,12 +2,13 @@
# Rendering method here
class Atome
private
- def rendering(element_to_render, content, &user_proc)
+ def rendering(element, &user_proc)
+ params=instance_variable_get("@#{element}")
render_engines = @atome[:renderers]
render_engines.each do |render_engine|
- send("#{render_engine}_#{element_to_render}", content, &user_proc)
+ send("#{render_engine}_#{element}", params, &user_proc)
end
end
end