aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template
Commit message (Collapse)AuthorAgeFilesLines
...
* Initial work to improve the state of encodings for templateswycats2010-05-161-45/+53
|
* Check blocks are not incorrectly detected when compiling erubis templates ↵Simon Jefford2010-05-161-1/+1
| | | | | | [#4575 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Use annoted source code in Template:Error to avoid special cases in the show ↵José Valim2010-05-091-3/+2
| | | | exceptions middleware.
* Make backtrace_cleaner work as expected. Prior to this patch, the Full Trace ↵José Valim2010-05-031-26/+6
| | | | rarely showed the full trace. Also, increase performance considerably.
* yield always return an array, so we don't need to use .key?José Valim2010-03-311-6/+1
|
* Eliminate an error from an implicit dependency on AV::Basewycats2010-03-191-2/+22
|
* Improve performance of the rendering stack by freezing formats as a sign ↵José Valim2010-03-191-7/+12
| | | | that they shouldn't be further modified.
* Sending the partial as info is no longer required.José Valim2010-03-181-3/+3
|
* Move more normalization up to the lookup context, so it does not have to ↵José Valim2010-03-161-23/+1
| | | | repeat in every resolver.
* Add deprecation notices for <% %>.Carlhuda2010-03-151-1/+18
| | | | | | | | | | | | | | | | * 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.
* Finish cleaning up rendering stack from views and move assigns evaluation to ↵José Valim2010-03-122-10/+7
| | | | controller (so plugins and/or controllers can overwrite just one method).
* %= works for content_tag and does not require parenthesis on method callJosé Valim2010-03-121-47/+6
|
* Delegate #encoding to SafeBuffer tooJeremy Kemper2010-03-111-0/+4
|
* Merge branch 'master' of github.com:rails/railswycats2010-03-102-24/+18
|\
| * Optimize and clean up how details key get expired.José Valim2010-03-101-0/+5
| |
| * Clean up the API required from ActionView::Template.José Valim2010-03-092-24/+13
| |
* | Make form helpers work with <%= wycats2010-03-091-0/+8
| |
* | Deprecate block_called_from_erb? pending a solution for getting it into appsCarlhuda2010-03-091-5/+41
|/
* Clean LookupContext API.José Valim2010-03-081-6/+10
|
* Move details to lookup_context and make resolvers use the cache key.José Valim2010-03-081-34/+12
|
* Speed up performance in resolvers by adding fallbacks just when required.José Valim2010-03-081-24/+7
|
* Rename Template::Lookup to LookupContext.José Valim2010-03-081-56/+0
|
* Finally moved the find template logic to the views.José Valim2010-03-081-4/+3
|
* Move layout lookup to views.José Valim2010-03-081-0/+8
|
* Added template lookup responsible to hold all information used in template ↵José Valim2010-03-071-0/+48
| | | | lookup.
* First take on ViewPaths clean up.José Valim2010-03-071-8/+11
|
* Actually, revert previous commit. Having a lot of information is better than ↵José Valim2010-03-051-9/+3
| | | | having no information at all.
* Define to_s method in ActionView::Resolver, so I'm not required to write it ↵José Valim2010-03-051-1/+5
| | | | in inherited classes.
* Fix render :file => "#{Rails.root}/public/404.html", :status => :not_found. ↵Yehuda Katz2010-02-231-1/+1
| | | | Closes #8994
* Rename erubis_implementation to erb_implementation.José Valim2010-02-221-3/+3
|
* Resolve view paths correctly on CygWinSam Ruby2010-02-021-1/+1
| | | | Signed-off-by: Mikel Lindsaar <raasdnil@gmail.com>
* Convert to class_attributeJeremy Kemper2010-02-012-3/+4
|
* Add support for compile-time <%= raw %>Yehuda Katz2010-01-311-1/+5
|
* Deleted all references to ActionView::SafeBuffer in favor of ↵Santiago Pastorino2010-01-311-1/+1
| | | | | | ActiveSupport::SafeBuffer Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
* deOMGifying Railties, Active Support, and Action PackMikel Lindsaar2010-01-311-2/+1
|
* Fix t('.helper').José Valim2010-01-261-5/+8
|
* Add subscriber for ActionPack and move all logging inside it.José Valim2010-01-131-1/+1
|
* Silence some trivial warnings: shadowed local vars, indentation mismatchesJeremy Kemper2009-12-282-10/+6
|
* Instead of marking raw text in templates as safe, and then putting them ↵Yehuda Katz2009-12-241-1/+2
| | | | through String#<< which checks if the String is safe, use safe_concat, which uses the original (internal) String#<< and leaves the safe flag as is. Results in a significant performance improvement.
* Add autoloads for ActionView::Template* classes, and an ↵Nathan Weizenbaum2009-12-101-1/+3
| | | | | | ActionView::TemplateError alias for ActionView::Template::Error. Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
* Reorganize autoloads:Carlhuda2009-12-029-317/+197
| | | | | | | | | | | | | | | | | | | | | * A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior. * All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments * Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore * It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name" * It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there. * One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case". * test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications.
* Improve AbstractController layouts coverage.José Valim2009-11-011-2/+2
|
* Reduce TextTemplate cost for simple casesYehuda Katz2009-10-281-1/+3
|
* Make encodings work with Erubis and 1.9 againYehuda Katz2009-10-161-3/+5
|
* Fix a bug where templates with locales were not being sorted correctlyYehuda Katz2009-10-161-1/+1
|
* Renamed Orchestra to Notifications once again [#3321 state:resolved]José Valim2009-10-151-1/+1
|
* Update Orchestra instrumentations and move part of logging to Orchestra.José Valim2009-10-151-1/+1
|
* Revert "Rename Orchestra to Notifications [#3321 state:resolved]"José Valim2009-10-151-1/+1
| | | | This reverts commit 8cbf825425dc8ad3770881ea4e100b9023c69ce2.
* Make the erubis implementation easier for plugins to change.Michael Koziarski2009-10-151-1/+4
|
* Rename Orchestra to Notifications [#3321 state:resolved]Joshua Peek2009-10-141-1/+1
|