module Locomotive module Public class RobotsController < Public::BaseController include Locomotive::Render respond_to :txt def show template = ::Liquid::Template.parse(current_site.robots_txt) render text: template.render(locomotive_context.merge('request_host' => self.request.host.downcase)) end end end end