Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use identifiers for template equality. | José Valim | 2010-10-10 | 1 | -0/+8 |
| | |||||
* | Clean up unused methods from AV::Base and pass in the template object on ↵ | José Valim | 2010-10-10 | 1 | -8/+10 |
| | | | | rendering. | ||||
* | Add expire! and rerender to the template API. This will be used by SASS ↵ | José Valim | 2010-10-10 | 1 | -2/+47 |
| | | | | template handler. | ||||
* | Add some unit tests to Template#refresh. | José Valim | 2010-10-10 | 1 | -4/+28 |
| | |||||
* | Deprecate old template handler API. Remove old handlers. | José Valim | 2010-10-10 | 1 | -2/+2 |
| | |||||
* | Add more docs and tests to templates. | José Valim | 2010-10-09 | 1 | -0/+12 |
| | |||||
* | Fix 1.9.2 failures. | José Valim | 2010-10-08 | 1 | -4/+4 |
| | |||||
* | Remove locals dependency from template. | José Valim | 2010-10-07 | 1 | -0/+1 |
| | | | | | | 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. | ||||
* | Use helper method here. | Emilio Tagua | 2010-09-28 | 1 | -6/+5 |
| | |||||
* | Silence warnings here, only setting Encoding.default_external for testing. | Emilio Tagua | 2010-09-28 | 1 | -2/+3 |
| | |||||
* | Initialize @_virtual_path path ivar. | Emilio Tagua | 2010-09-28 | 1 | -0/+1 |
| | |||||
* | Move encoding settings for testing purposes to abstract_unit file | Santiago Pastorino | 2010-08-21 | 1 | -8/+1 |
| | |||||
* | Update template to allow handlers to more cleanly handle encodings (ht: nex3) | wycats | 2010-05-30 | 1 | -4/+13 |
| | |||||
* | Make sure encoding changes don't break 1.8 | wycats | 2010-05-17 | 1 | -4/+6 |
| | |||||
* | Significantly improved internal encoding heuristics and support. | wycats | 2010-05-16 | 1 | -0/+128 |
* 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 |