From 8bea607265a2c9bb9bb2188b0a79089ca373b814 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Sun, 13 May 2012 20:22:29 -0400 Subject: Created a Raw handler for templates. Fixes #2394 --- actionpack/lib/action_view/template/handlers.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack/lib/action_view/template/handlers.rb') diff --git a/actionpack/lib/action_view/template/handlers.rb b/actionpack/lib/action_view/template/handlers.rb index 4e22bec6cc..41b14373a3 100644 --- a/actionpack/lib/action_view/template/handlers.rb +++ b/actionpack/lib/action_view/template/handlers.rb @@ -4,10 +4,12 @@ module ActionView #:nodoc: module Handlers #:nodoc: autoload :ERB, 'action_view/template/handlers/erb' autoload :Builder, 'action_view/template/handlers/builder' + autoload :Raw, 'action_view/template/handlers/raw' def self.extended(base) base.register_default_template_handler :erb, ERB.new base.register_template_handler :builder, Builder.new + base.register_template_handler :raw, Raw.new end @@template_handlers = {} -- cgit v1.2.3