aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_view/template/handlers/raw.rb
blob: 0c0d1fffcbcedfa1a92b8dd8fbded104c71da6e4 (plain) (tree)
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