1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/fixtures/layouts
Carlhuda 9de83050d3 Add deprecation notices for <% %>.
* The approach is to compile <% %> into a method call that checks whether
    the value returned from a block is a String. If it is, it concats to the buffer and
    prints a deprecation warning.
  * <%= %> uses exactly the same logic to compile the template, which first checks
    to see whether it's compiling a block.
  * This should have no impact on other uses of block in templates. For instance, in
    <% [1,2,3].each do |i| %><%= i %><% end %>, the call to each returns an Array,
    not a String, so the result is not concatenated
  * In two cases (#capture and #cache), a String can be returned that should *never*
    be concatenated. We have temporarily created a String subclass called NonConcattingString
    which behaves (and is serialized) identically to String, but is not concatenated
    by the code that handles deprecated <% %> block helpers. Once we remove support
    for <% %> block helpers, we can remove NonConcattingString.
2010-03-15 14:50:43 -07:00
..
_column.html.erb Ensure @content_for_* is checked before yielding to block in render :layout [#8994 state:resolved] 2008-10-28 17:31:33 -05:00
block_with_layout.erb Add deprecation notices for <% %>. 2010-03-15 14:50:43 -07:00
builder.builder Drive the final stake through @content_for_*'s heart! 2009-06-17 18:08:45 -07:00
partial_with_layout.erb Fixed rendering of partials with layout when done from site layout (closes #9209) [antramm] 2008-01-03 15:28:36 +00:00
standard.html.erb Drive the final stake through @content_for_*'s heart! 2009-06-17 18:08:45 -07:00
talk_from_action.erb Drive the final stake through @content_for_*'s heart! 2009-06-17 18:08:45 -07:00
xhr.html.erb correctly handle layouts for AJAX requests and regular js files [#2052 state:resolved] 2009-02-24 10:38:07 -06:00
yield.erb Apply the rest of Chads patch 2007-02-21 00:29:44 +00:00