aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template/resolver.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move require to where it's neededSantiago Pastorino2012-05-111-0/+1
|
* Minor clarification in documentation language and spellingMatthew Daubert2012-03-131-4/+4
|
* Remove some of the ActiveSupport core extensions related to 1.8.Uģis Ozols2011-12-211-1/+0
|
* 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
|
* 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
|
* refactor the optimized build_query a bitAaron Patterson2011-08-081-8/+3
|
* reduce file stats by improving our dir glob patternAaron Patterson2011-08-081-1/+1
|
* hash on the template directory in order to improve cache hitsAaron Patterson2011-08-081-2/+3
|
* use meaningful names with our variablesAaron Patterson2011-08-081-6/+6
|
* use binread to read the filesAaron Patterson2011-08-081-1/+2
|
* Use shorter class-level File methods instead of going through File.stat.thedarkone2011-07-251-1/+1
|
* Optimize the most common resolver case.José Valim2011-05-091-13/+26
|
* No need for replace.José Valim2011-05-091-12/+11
|
* removes a remaining reference to .rjs in template resolver's RDocXavier Noria2011-04-131-1/+1
|
* fixes a couple of regexps, the suite showed warnings about themXavier Noria2011-03-271-2/+2
| | | | | | | | | | | | | | | | | A couple of things worth mentioning here: - "{" is a metacharacter, should be escaped if it is meant to match a "{". The code worked, though, because the regexp engine is tolerant to this, but issued warnings. - gsub accepts a string as first argument. That's the best idiom to use when your pattern has no metacharacters, since gsub interprets the string as an exact substring to look for, rather than a regexp. The benefit is that your pattern is crystal clear and needs no backslashes.
* Improved resolver docs a bitJosé Valim2011-03-191-2/+10
|
* [action_view] docs for FileSystemResolverChris Kowalik2011-03-201-2/+30
|
* [action_view] added custom patterns to template resolverChris Kowalik2011-03-201-18/+49
|
* Add additional text to NotImplementedErrors [#6328 state:resolved]Mike Gehard2011-03-121-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* reduce string append funcallsAaron Patterson2011-02-081-3/+3
|
* Ensure render is case sensitive even on systems with case-insensitive ↵José Valim2011-02-081-3/+12
| | | | | | filesystems. This fixes CVE-2011-0449
* A bunch of cleanup on the inherited template patchwycats2010-12-261-1/+1
|
* Bring back config.action_view.cache_template_loading [#5847 state:resolved]Piotr Sarnacki2010-12-161-3/+8
|
* Ensure resolvers backward compatibility.José Valim2010-12-091-1/+1
|
* Deprecate handler_class_for_extension as template handlers can be any Ruby ↵José Valim2010-12-011-1/+1
| | | | object, not necessarily a class.
* Do not allow templates coming from Fallback resolvers to store a virtual path.José Valim2010-10-101-0/+13
|
* Resolvers now consider timestamps.José Valim2010-10-101-21/+46
| | | | | | | | | | | Before this patch, every request in development caused the template to be compiled, regardless if it was updated in the filesystem or not. This patch now checks the timestamp and only compiles it again if any change was done. While this probably won't show any difference for current setups, but it will be useful for asset template handlers (like SASS), as compiling their templates is slower than ERb, Haml, etc.
* Remove locals dependency from template.José Valim2010-10-071-7/+23
| | | | | | 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.
* Get rid of ruby warnings in Resolvers. Move a few methods up to the abstract ↵José Valim2010-10-071-21/+24
| | | | class.
* Initialize @path.Emilio Tagua2010-09-281-0/+1
|
* Revert "Setup explicit requires for files with exceptions. Removed them from ↵José Valim2010-09-021-1/+0
| | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6.
* Setup explicit requires for files with exceptions. Removed them from ↵Łukasz Strzałkowski2010-09-021-0/+1
| | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com>
* Avoid using Pathname on Resolver and AS::Dependencies.José Valim2010-06-241-1/+1
|
* Final touches and fixes.Rizwan Reza2010-06-211-0/+1
|
* Revert "Moved encoding work in progress to a feature branch."wycats2010-05-171-1/+4
| | | | This reverts commit ade756fe42423033bae8e5aea8f58782f7a6c517.
* Moved encoding work in progress to a feature branch.Jeremy Kemper2010-05-161-4/+1
| | | | This reverts commits af0d1a88157942c6e6398dbf73891cff1e152405 and 64d109e3539ad600f58536d3ecabd2f87b67fd1c.
* Significantly improved internal encoding heuristics and support.wycats2010-05-161-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * Default Encoding.default_internal to UTF-8 * Eliminated the use of file-wide magic comments to coerce code evaluated inside the file * Read templates as BINARY, use default_external or template-wide magic comments inside the Template to set the initial encoding * This means that template handlers in Ruby 1.9 will receive Strings encoded in default_internal (UTF-8 by default) * Create a better Exception for encoding issues, and use it when the template source has bytes that are not compatible with the specified encoding * Allow template handlers to opt-into handling BINARY. If they do so, they need to do some of their own manual encoding work * Added a "Configuration Gotchas" section to the intro Rails Guide instructing users to use UTF-8 for everything * Use config.encoding= in Ruby 1.8, and raise if a value that is an invalid $KCODE value is used Also: * Fixed a few tests that were assert() rather than assert_equal() and were caught by Minitest requiring a String for the message * Fixed a test where an assert_select was misformed, also caught by Minitest being more restrictive * Fixed a test where a Rack response was returning a String rather than an Enumerable
* yield always return an array, so we don't need to use .key?José Valim2010-03-311-6/+1
|
* 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.
* 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-091-19/+12
|
* 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
|