Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Yo dawg, I heard you like streaming. So I put a fiber, inside a block, ↵ | José Valim | 2011-04-16 | 1 | -14/+4 |
| | | | | inside a body, so you can stream. | ||||
* | Buffer should be an option passed down to template rendering. | José Valim | 2011-04-16 | 1 | -1/+1 |
| | |||||
* | removes a remaining reference to .rjs in template resolver's RDoc | Xavier Noria | 2011-04-13 | 1 | -1/+1 |
| | |||||
* | removes the RJS template handler | Xavier Noria | 2011-04-13 | 2 | -15/+0 |
| | |||||
* | s/ERb/ERB/g | Akira Matsuda | 2011-04-03 | 1 | -1/+1 |
| | | | | | The author of ERB sais, his eRuby implementation was originally named "ERb/ERbLight" and then renamed to "ERB" when started bundled as a Ruby standard lib. http://www2a.biglobe.ne.jp/~seki/ruby/erb.html | ||||
* | fixes a couple of regexps, the suite showed warnings about them | Xavier Noria | 2011-03-27 | 1 | -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 bit | José Valim | 2011-03-19 | 1 | -2/+10 |
| | |||||
* | [action_view] docs for FileSystemResolver | Chris Kowalik | 2011-03-20 | 1 | -2/+30 |
| | |||||
* | [action_view] added custom patterns to template resolver | Chris Kowalik | 2011-03-20 | 1 | -18/+49 |
| | |||||
* | Add additional text to NotImplementedErrors [#6328 state:resolved] | Mike Gehard | 2011-03-12 | 1 | -1/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Action Pack typos. | R.T. Lechow | 2011-03-05 | 1 | -1/+1 |
| | |||||
* | reduce string append funcalls | Aaron Patterson | 2011-02-08 | 1 | -3/+3 |
| | |||||
* | Ensure render is case sensitive even on systems with case-insensitive ↵ | José Valim | 2011-02-08 | 1 | -3/+12 |
| | | | | | | filesystems. This fixes CVE-2011-0449 | ||||
* | Merge branch 'template_error' into merge | Aaron Patterson | 2011-01-18 | 1 | -4/+1 |
|\ | | | | | | | | | | | * template_error: Ensure original exception message is present in both Template::Error#message and Template::Error#inspect. ActiveSupport::Deprecation.silence no longer needed. | ||||
| * | Ensure original exception message is present in both Template::Error#message ↵ | John Firebaugh | 2010-10-29 | 1 | -4/+1 |
| | | | | | | | | | | | | and Template::Error#inspect. Previously, #inspect would produce #<ActionView::Template::Error: ActionView::Template::Error>, which is not very useful. | ||||
| * | ActiveSupport::Deprecation.silence no longer needed. | John Firebaugh | 2010-10-29 | 1 | -1/+1 |
| | | |||||
* | | A bunch of cleanup on the inherited template patch | wycats | 2010-12-26 | 2 | -3/+7 |
| | | |||||
* | | Bring back config.action_view.cache_template_loading [#5847 state:resolved] | Piotr Sarnacki | 2010-12-16 | 1 | -3/+8 |
| | | |||||
* | | Ensure resolvers backward compatibility. | José Valim | 2010-12-09 | 1 | -1/+1 |
| | | |||||
* | | Deprecate handler_class_for_extension as template handlers can be any Ruby ↵ | José Valim | 2010-12-01 | 2 | -2/+8 |
| | | | | | | | | object, not necessarily a class. | ||||
* | | Make safe_append= live on AV::OutputBuffer not AS::SafeBuffer | Michael Koziarski | 2010-11-08 | 1 | -0/+1 |
| | | | | | | | | | | | | Conflicts: actionpack/lib/action_view/template/handlers/erb.rb | ||||
* | | Added support for Erubis <%== tag | Jan Maurits Faber | 2010-11-08 | 1 | -1/+5 |
|/ | | | | | | | <%== x %> is syntactic sugar for <%= raw(x) %> Signed-off-by: Michael Koziarski <michael@koziarski.com> [#5918 status:committed] | ||||
* | Remove :cache => true on lookup templates initialization. | José Valim | 2010-10-14 | 1 | -20/+0 |
| | |||||
* | SReorganize autoloads slightly and move two files to lib/action_view root. | José Valim | 2010-10-14 | 1 | -2/+2 |
| | |||||
* | Do not allow templates coming from Fallback resolvers to store a virtual path. | José Valim | 2010-10-10 | 1 | -0/+13 |
| | |||||
* | Use identifiers for template equality. | José Valim | 2010-10-10 | 1 | -0/+20 |
| | |||||
* | Resolvers now consider timestamps. | José Valim | 2010-10-10 | 1 | -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. | ||||
* | Deprecate old template handler API. Remove old handlers. | José Valim | 2010-10-10 | 5 | -30/+35 |
| | |||||
* | Remove locals dependency from template. | José Valim | 2010-10-07 | 2 | -11/+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é Valim | 2010-10-07 | 1 | -21/+24 |
| | | | | class. | ||||
* | Template::Error is also used if rendering fails. | John Firebaugh | 2010-10-04 | 1 | -2/+3 |
| | |||||
* | Initialize @path. | Emilio Tagua | 2010-09-28 | 1 | -0/+1 |
| | |||||
* | Initialize @sub_templates | Emilio Tagua | 2010-09-28 | 1 | -0/+1 |
| | |||||
* | Revert "Setup explicit requires for files with exceptions. Removed them from ↵ | José Valim | 2010-09-02 | 1 | -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łkowski | 2010-09-02 | 1 | -0/+1 |
| | | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Remove deprecated support to <% form_for %> and several ↵ | José Valim | 2010-08-29 | 1 | -15/+0 |
| | | | | ActionController::Base methods. | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 2 | -2/+2 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Avoid using Pathname on Resolver and AS::Dependencies. | José Valim | 2010-06-24 | 1 | -1/+1 |
| | |||||
* | Final touches and fixes. | Rizwan Reza | 2010-06-21 | 4 | -0/+4 |
| | |||||
* | Optimize LookupContext | wycats | 2010-06-04 | 1 | -1/+1 |
| | |||||
* | Update template to allow handlers to more cleanly handle encodings (ht: nex3) | wycats | 2010-05-30 | 2 | -27/+26 |
| | |||||
* | Make sure encoding changes don't break 1.8 | wycats | 2010-05-17 | 1 | -1/+3 |
| | |||||
* | Significantly improved internal encoding heuristics and support. | wycats | 2010-05-16 | 3 | -4/+64 |
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | Initial work to improve the state of encodings for templates | wycats | 2010-05-16 | 1 | -45/+53 |
| | |||||
* | Check blocks are not incorrectly detected when compiling erubis templates ↵ | Simon Jefford | 2010-05-16 | 1 | -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é Valim | 2010-05-09 | 1 | -3/+2 |
| | | | | exceptions middleware. | ||||
* | Make backtrace_cleaner work as expected. Prior to this patch, the Full Trace ↵ | José Valim | 2010-05-03 | 1 | -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é Valim | 2010-03-31 | 1 | -6/+1 |
| | |||||
* | Eliminate an error from an implicit dependency on AV::Base | wycats | 2010-03-19 | 1 | -2/+22 |
| | |||||
* | Improve performance of the rendering stack by freezing formats as a sign ↵ | José Valim | 2010-03-19 | 1 | -7/+12 |
| | | | | that they shouldn't be further modified. |