Sign in through GitHub

Please read for an updated status on RailsCasts:

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" %>