diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-12 13:02:20 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-12 13:02:20 +0000 |
commit | 0052f41009cd0a52455779c04bb57e18cad5f9f8 (patch) | |
tree | 85a8e00364f230abd1b8721f317e24542409de5e /actionpack/lib/action_view/base.rb | |
parent | 870632dba340e72edd6d6215d0ed2ff74a1dda8b (diff) | |
download | rails-0052f41009cd0a52455779c04bb57e18cad5f9f8.tar.gz rails-0052f41009cd0a52455779c04bb57e18cad5f9f8.tar.bz2 rails-0052f41009cd0a52455779c04bb57e18cad5f9f8.zip |
Added option to ERB templates to swallow newlines by using <% if something -%> instead of just <% if something %>
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@121 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r-- | actionpack/lib/action_view/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index 683cb8af6f..24c33cd11d 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -251,7 +251,7 @@ module ActionView #:nodoc: end def rhtml_render(template, binding) - @@compiled_erb_templates[template] ||= ERB.new(template) + @@compiled_erb_templates[template] ||= ERB.new(template, nil, '-') @@compiled_erb_templates[template].result(binding) end |