diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-11-17 13:10:23 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-11-17 13:10:23 +0000 |
commit | 96cca7db6dd2022d74fd94eb532ceacc8913b57b (patch) | |
tree | 98f4ba262dc540b405542dd430d55b9a17a6ae91 /actionpack/lib/action_view/base.rb | |
parent | 495f113e57c5b5db883c9a395aa80f8ccfc171bf (diff) | |
download | rails-96cca7db6dd2022d74fd94eb532ceacc8913b57b.tar.gz rails-96cca7db6dd2022d74fd94eb532ceacc8913b57b.tar.bz2 rails-96cca7db6dd2022d74fd94eb532ceacc8913b57b.zip |
ActionView::Base.erb_variable accessor names the buffer variable used to render templates. Defaults to _erbout; use _buf for erubis.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r-- | actionpack/lib/action_view/base.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index 1342db058d..efd2824236 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -183,6 +183,9 @@ module ActionView #:nodoc: # that alert()s the caught exception (and then re-raises it). @@debug_rjs = false cattr_accessor :debug_rjs + + @@erb_variable = '_erbout' + cattr_accessor :erb_variable @@template_handlers = HashWithIndifferentAccess.new |