diff options
Diffstat (limited to 'actionview/lib/action_view/template/handlers/raw.rb')
-rw-r--r-- | actionview/lib/action_view/template/handlers/raw.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/actionview/lib/action_view/template/handlers/raw.rb b/actionview/lib/action_view/template/handlers/raw.rb new file mode 100644 index 0000000000..397c86014a --- /dev/null +++ b/actionview/lib/action_view/template/handlers/raw.rb @@ -0,0 +1,11 @@ +module ActionView + module Template::Handlers + class Raw + def call(template) + escaped = template.source.gsub(/:/, '\:') + + '%q:' + escaped + ':;' + end + end + end +end |