aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/render
Commit message (Collapse)AuthorAgeFilesLines
* Update CHANGELOG.José Valim2010-10-101-1/+1
|
* Add support to render :once.José Valim2010-10-101-0/+7
| | | | This will be used internally by sprockets to ensure requires are executed just once.
* Clean up the house before moving in the new furniture.José Valim2010-10-103-299/+62
| | | | This commit moves all the template rendering logic that was hanging around AV::Base to renderer objects.
* fix rendering a partial with an array as its :object [#5746 state:resolved]Michael Koziarski2010-10-081-3/+7
| | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> Conflicts: actionpack/lib/action_view/render/partials.rb
* render :template => 'foo/bar.json' now works as it should.José Valim2010-10-072-9/+26
|
* Make collection rendering faster.José Valim2010-10-071-2/+2
|
* Remove locals dependency from template.José Valim2010-10-073-41/+53
| | | | | | This means that templates does not need to store its source anymore, allowing us to reduce the ammount of memory taken by our Rails processes. Naively speaking, if your app/views contains 2MB of files, each of your processes (after being hit by a bunch of requests) will take 2MB less of memory after this commit. This is extremely important for the upcoming features. Since Rails will also render CSS and JS files, their source won't be stored as well allowing us to decrease the ammount of memory taken.
* reviews 02656acXavier Noria2010-09-131-18/+17
|
* copy-edits 4eb8987Xavier Noria2010-09-131-3/+3
|
* Add documentation for `:spacer_template` in Rails 3Prem Sichanugrist2010-09-131-0/+5
| | | This setting was existed since Rails 2.3.x, and seems like it have been left out when we rewriting the documentation.
* added documentation for :as and :object in PartialRendererCollin Miller2010-09-131-0/+32
| | | | Signed-off-by: Mikel Lindsaar <raasdnil@gmail.com>
* in Rendering objects with RecordIdentifier example, locals should reference ↵Mark Hayes2010-08-121-1/+1
| | | | @account not @buyer
* layout_for works again with objects as specified in the documentation and ↵José Valim & Carlos Antonio da Silva2010-08-111-4/+8
| | | | Rails 2.3 [#5357 state:resolved]
* Merge remote branch 'rails/master'Xavier Noria2010-06-201-1/+1
|\ | | | | | | | | Conflicts: actionpack/lib/abstract_controller/base.rb
| * Make sure a namespaced <%= render form %> still renders the _form partial ↵Jan De Poorter2010-06-201-1/+1
| | | | | | | | | | | | [#4784 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* | Final touches and fixes.Rizwan Reza2010-06-211-1/+1
| |
* | Added title to some other files in actionpack/lib/action_viewRizwan Reza2010-06-163-0/+4
| |
* | Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-151-1/+1
|\ \ | |/ |/|
| * Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-111-1/+1
| |
* | render(:inline) in a layout before yield replaces original contentNeeraj Singh2010-06-131-1/+1
|/ | | | | | [#4777 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Make AP test suite green once again and speed up performance in layouts ↵José Valim2010-06-071-12/+3
| | | | lookup for some cases.
* Formats should always be an array.Jeremy Kemper2010-06-061-1/+1
|
* Optimize the code added in fa99de0bd054576336c9José Valim2010-05-151-9/+19
|
* make sure `as` is set before trying to build an #{as}_counter. [#2804 ↵Jeff Kreeftmeijer2010-05-151-1/+1
| | | | | | state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* partial counters with :as [#2804 state:resolved]Jeff Kreeftmeijer2010-05-151-0/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Change event namespace ordering to most-significant first [#4504 state:resolved]Justin George2010-05-022-3/+3
| | | | | | | | | More work still needs to be done on some of these names (render_template.action_view and render_template!.action_view particularly) but this allows (for example) /^sql/ to subscribe to all the various ORMs without further modification Signed-off-by: José Valim <jose.valim@gmail.com>
* Layout contents are html-safeJeremy Kemper2010-04-091-1/+1
|
* <% yield to <%= yield in rdoc of _layout_for, and copy-edits it now that we ↵Xavier Noria2010-04-051-17/+31
| | | | are on it
* Key partial name cache on controller and object class *names* to avoid ↵Jeremy Kemper2010-04-021-2/+2
| | | | memory leaks in dev mode
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+2
|
* Ensure details are frozen after @details_keys lookup. The implementation ↵José Valim2010-03-271-10/+1
| | | | waits to freeze until the last required moment, to avoid duping hashes.
* Merge branch 'master' into docrailswycats2010-03-262-12/+27
|\
| * Improve performance of the rendering stack by freezing formats as a sign ↵José Valim2010-03-192-6/+12
| | | | | | | | that they shouldn't be further modified.
| * Modify assert_template to use notifications. Also, remove ↵Carlhuda2010-03-171-2/+1
| | | | | | | | ActionController::Base#template since it is no longer needed.
| * Fix rendering of HTML partials inside JS templates [#4197 status:resolved]José Valim2010-03-161-3/+14
| |
| * Add deprecation notices for <% %>.Carlhuda2010-03-151-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | Merge remote branch 'mainstream/master'Pratik Naik2010-03-153-41/+15
|\|
| * Remove formats setters from render template, speeding up partial and ↵José Valim2010-03-131-2/+1
| | | | | | | | collection renderings.
| * Finish cleaning up rendering stack from views and move assigns evaluation to ↵José Valim2010-03-122-33/+9
| | | | | | | | controller (so plugins and/or controllers can overwrite just one method).
| * Allow anything that responds to render to be given as :template and use ↵José Valim2010-03-123-8/+7
| | | | | | | | find_template instead of find in views.
* | Updated documentation for block helpers in render/layouts.rbJeroen van Dijk2010-03-121-2/+2
| |
* | Merge remote branch 'mainstream/master'Pratik Naik2010-03-123-107/+121
|\| | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/base.rb railties/lib/rails/configuration.rb railties/lib/rails/log_subscriber.rb
| * Clean LookupContext API.José Valim2010-03-083-8/+6
| |
| * Bring AM up to date with new rendering stack.José Valim2010-03-081-0/+2
| |
| * Speed up performance in resolvers by adding fallbacks just when required.José Valim2010-03-082-2/+3
| |
| * Rename Template::Lookup to LookupContext.José Valim2010-03-083-5/+5
| |
| * More refactoring on the views side of rendering.José Valim2010-03-083-95/+97
| |
| * Finally moved the find template logic to the views.José Valim2010-03-081-16/+24
| |
| * More cleanup on the layouts side.José Valim2010-03-082-17/+6
| |
| * Move layout lookup to views.José Valim2010-03-082-2/+16
| |