RailsCasts Pro episodes are now free!

Learn more or hide this

Sandy's Profile

GitHub User: sat

Comments by Sandy

Avatar
module EcoTemplateHandler
  def self.call(template)
    Eco.render(template.source.inspect, template.locals)
  end
end
ActionView::Template.register_template_handler(:eco, EcoTemplateHandler)

<%= raw render "eco_template" %>