aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/template/handlers/raw.rb
blob: 397c86014a9662baddc7eac0510f0dd10c036312 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
module ActionView
  module Template::Handlers
    class Raw
      def call(template)
        escaped = template.source.gsub(/:/, '\:')

        '%q:' + escaped + ':;'
      end
    end
  end
end