engine/app/controllers/locomotive/public/robots_controller.rb

16 lines
334 B
Ruby

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