blob: 300f9890e9ddb491a5c392c800d9fe92919f1798 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
module ActionView
module TemplateHandlers
class RJS < TemplateHandler
def compile(template)
"controller.response.content_type ||= Mime::JS\n" +
"update_page do |page|\n#{template}\nend"
end
end
end
end
|