aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template
Commit message (Collapse)AuthorAgeFilesLines
* formatted_code_for should be privateGuillermo Iguaran2012-12-311-12/+12
|
* Add style to AV::Template::Error exception pageGuillermo Iguaran2012-12-311-4/+12
|
* Replace some global Hash usages with the new thread safe cache.thedarkone2012-12-141-30/+29
| | | | | | | | | | | | | | | | Summary of the changes: * Add thread_safe gem. * Use thread safe cache for digestor caching. * Replace manual synchronization with ThreadSafe::Cache in Relation::Delegation. * Replace @attribute_method_matchers_cache Hash with ThreadSafe::Cache. * Use TS::Cache to avoid the synchronisation overhead on listener retrieval. * Replace synchronisation with TS::Cache usage. * Use a preallocated array for performance/memory reasons. * Update the controllers cache to the new AS::Dependencies::ClassCache API. The original @controllers cache no longer makes much sense after @tenderlove's changes in 7b6bfe84f3 and f345e2380c. * Use TS::Cache in the connection pool to avoid locking overhead. * Use TS::Cache in ConnectionHandler.
* Override <%== to always behave as literal text rather than toggling based on ↵Jeremy Kemper2012-12-031-0/+11
| | | | whether escaping is enabled. Fixes that existing plaintext email templates using <%== unexpectedly flipped to *escaping* HTML when #8235 was merged.
* Introduce `ActionView::Template::Handlers::ERB.escape_whitelist`.Joost Baaij2012-11-161-0/+5
| | | | | | | | | | | This is a list of mime types where template text is not html escaped by default. It prevents `Jack & Joe` from rendering as `Jack &amp; Joe` for the whitelisted mime types. The default whitelist contains text/plain. This follows a whitelist approach where plain text templates are not escaped, and all the others (json, xml) are. The mime type is assumed to be set by the abstract controller.
* Make caller attribute in deprecation methods optionalAlexey Gaziev2012-10-301-1/+1
|
* Fix failing tests and use new hash style in deprecation messagesCarlos Antonio da Silva2012-10-291-1/+1
|
* Provide a call stack for deprecation warnings where needed.Nikita Afanasenko2012-10-291-1/+7
| | | | It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly.
* Merge pull request #7669 from guilleiguaran/rename-rb-handlerCarlos Antonio da Silva2012-09-171-1/+1
|\ | | | | Rename .rb template handler to .ruby to avoid conflicts with mustache classes
| * Rename .rb template handler to .ruby to avoid conflicts with mustache views ↵Guillermo Iguaran2012-09-171-1/+1
| | | | | | | | classes
* | allowing pass couple extension to register_template_handler callTima Maslyuchenko2012-09-171-3/+6
|/
* Add .rb template handlerGuillermo Iguaran2012-09-111-0/+1
| | | | This handler simply allows arbitrary Ruby code as a template
* Sprockets-rails tests failDmitry Vorotilin2012-09-011-0/+3
| | | | | | | Method invalid_asset_host! was delegated to controller but sprockets compile assets in their own scope without controller. And if we set asset_host with second parameter it should raise error through invalid_asset_host!. But since controller is nil it cannot be reached.
* Implement ActionView::Template::TypesPiotr Sarnacki2012-08-283-2/+61
| | | | | | AV::Template::Types is a small abstraction to allow to specify template types that can be used in ActionView. When Action Pack is loaded it's replaced with Mime::Type.
* Remove Mime::Type translations from Action ViewPiotr Sarnacki2012-08-283-8/+7
| | | | | Action View should not be responsible for translating mime types. Any translation that's needed should be handled at controller level.
* Indentation should consider line number character count.Lucas Uyezu2012-08-131-2/+2
|
* Revert "Merge pull request #7033 from kron4eg/master". Not a a fan at all of ↵David Heinemeier Hansson2012-08-071-10/+4
| | | | | | | what this makes ERB files look like. This reverts commit 46b8bceedd3e47169c50a04c93161424909c75fb, reversing changes made to 2f58795e783150f2e1b1f6c64e305703f0061129.
* Restoring the '%' trim mode for ERb templates, allowing for a leading ↵Artiom Di2012-08-071-4/+10
| | | | percent sign on a line to indicate non-inserted Ruby code.
* load active_support/core_ext/class/attribute in active_support/railsXavier Noria2012-08-021-1/+0
|
* eliminating another string subclassAaron Patterson2012-06-221-3/+7
|
* use mutex_m rather than use a delegate systemAaron Patterson2012-06-211-6/+3
|
* Merge pull request #6428 from pinetops/resolver_concurrency_fixYehuda Katz2012-06-211-19/+76
|\ | | | | Make the Resolver template cache threadsafe
| * Improve the readability of the Resolver change detection codeTom Clarke2012-05-221-11/+19
| |
| * More granular locking of the Resolver template cacheTom Clarke2012-05-211-5/+23
| | | | | | | | | | | | | | In order to avoid holding a global lock when doing template resolution, instead add individual locks on a per cache entry basis. The global lock is now only used for manipulation of the main cache data structure.
| * Make the Resolver template cache threadsafe - closes #6404Tom Clarke2012-05-211-19/+50
| | | | | | | | | | | | | | | | | | The Template cache in the Resolver can be accessed by multiple threads similtaneously in multi-threaded environments. The cache is implemented using a Hash, which isn't threadsafe in all VMs (notably JRuby). This commit extracts the cache to a new Cache class and adds mutexes to prevent concurrent access.
* | stop subclassing stringAaron Patterson2012-06-211-3/+10
|/
* Revert "Merge pull request #6425 from pinetops/resolver_concurrency_fix"José Valim2012-05-211-68/+19
| | | | | This reverts commit 254c04286c5916ae7f91eb6e173b312e7a74e364, reversing changes made to 513a0525c24c2944630acfa465b22cd2f4601adf.
* More granular locking of the Resolver template cacheTom Clarke2012-05-211-5/+23
| | | | | | | In order to avoid holding a global lock when doing template resolution, instead add individual locks on a per cache entry basis. The global lock is now only used for manipulation of the main cache data structure.
* Make the Resolver template cache threadsafe - closes #6404Tom Clarke2012-05-211-19/+50
| | | | | | | | | The Template cache in the Resolver can be accessed by multiple threads similtaneously in multi-threaded environments. The cache is implemented using a Hash, which isn't threadsafe in all VMs (notably JRuby). This commit extracts the cache to a new Cache class and adds mutexes to prevent concurrent access.
* Created a Raw handler for templates.Steve Klabnik2012-05-173-1/+16
| | | | Fixes #2394
* Move require to where it's neededSantiago Pastorino2012-05-111-0/+1
|
* Minor clarification in documentation language and spellingMatthew Daubert2012-03-131-4/+4
|
* format lookup for partials is derived from the format in which the template ↵Santiago Pastorino2012-02-221-4/+0
| | | | | | is being rendered Closes #5025 part 2
* Merge pull request #5101 from ckdake/ckdake_actionview_handler_resetJosé Valim2012-02-201-0/+1
| | | | | | | Reset memoized hash keys when new ActionView::Template handler is registered Conflicts: actionpack/lib/action_view/template/handlers.rb
* updating documentation for register_template_handlerJames A. Rosen2012-02-011-8/+5
|
* Removed unused assigns from ActionView::Template::Errorbrainopia2012-01-201-2/+2
| | | | | They existed since initial rails commit by DHH but lost use a long time ago
* Change more Array.wrap to Kernel#ArrayRafael Mendonça França2012-01-051-2/+1
|
* deprecate String#encoding_aware? and remove its usageSergey Nartimov2011-12-241-14/+10
|
* Remove some of the ActiveSupport core extensions related to 1.8.Uģis Ozols2011-12-211-1/+0
|
* Do not hard code encoding to UTF8José Valim2011-12-201-5/+1
|
* don't encode an UTF-8 encoded templateXu Pan2011-12-201-1/+1
|
* Revert accidental change from cattr_accessor to class_attribute.José Valim2011-12-081-1/+1
|
* Some small optimizations and improvements to benchmark code.José Valim2011-12-081-1/+1
|
* fix exception page when template contains utf-8 and parameters contain utf-8lest2011-11-301-1/+5
|
* Fixes for using action view template in isolation.José Valim2011-11-302-2/+11
|
* minor details revised in a gsubXavier Noria2011-08-181-1/+1
| | | | | | | | | Regexps have a construct to express alternation of characters, which is character classes. In addition to being the most specific idiom to write this pattern, it reads better without the backslashes. Also, it is better not to use a capture if none is needed. As a side-effect of these changes, the gsub is marginally faster, but speed is not the point of this commit.
* Properly escape glob characters.Aaron Patterson2011-08-161-3/+12
|
* Just remove the sort_locals methodAaron Patterson2011-08-091-12/+1
|
* the freeze trick does nothing on arrays used as hash keys.Aaron Patterson2011-08-091-2/+1
|
* use functional style to build a list of template objectsAaron Patterson2011-08-091-9/+12
|