Eugene Pimenov
|
b1c1e3deb7
|
Ruby 1.9 compat: change encoding of action_view/renderable to utf-8, so erb templates can use utf-8 properly
[#1881 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-02-06 11:03:41 -08:00 |
|
Joshua Peek
|
558ab327b7
|
Clean up view path cruft and split path implementations into Template::Path and Template::EagerPath
|
2008-12-29 19:27:19 -06:00 |
|
Joshua Peek
|
faf8364050
|
Defining a new method is atomic, no mutex needed.
|
2008-12-22 16:58:48 -06:00 |
|
Joshua Peek
|
858a420ce1
|
Ensure the template format is always passed to the template finder. Now we can cleanup some nasty stuff.
|
2008-12-21 17:24:16 -06:00 |
|
mark
|
49306ccacf
|
Add :partial option to assert_template [#1550 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-12-11 11:06:35 -06:00 |
|
Joshua Peek
|
9fccf72725
|
fixed template recompile issue with previous commit and add some better tests so we can make sure it doesn't happen again
|
2008-11-28 14:31:54 -06:00 |
|
Joshua Peek
|
9fc23745f1
|
Reinstate "Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache." as it killed dev mode reloading."
|
2008-11-28 11:18:28 -06:00 |
|
David Heinemeier Hansson
|
5fa0457542
|
Revert "Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache." as it killed dev mode reloading.
This reverts commit 4d910b0333.
|
2008-11-27 21:04:24 +01:00 |
|
Joshua Peek
|
4d910b0333
|
Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache.
|
2008-11-26 20:54:47 -06:00 |
|
Luke Melia
|
75fb8dfb99
|
Prevent assert_template failures when a render :inline is called before rendering a file-based template [#1383 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-11-17 22:09:22 -06:00 |
|
Ryan Bates
|
4ad5aa9a39
|
Ensure @content_for_* is checked before yielding to block in render :layout [#8994 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-10-28 17:31:33 -05:00 |
|
Joshua Peek
|
ac50ee0edf
|
Track rendered templates in stack so the current template can always be accessed. Added ActionView::Base#template to access the template object.
|
2008-10-28 11:06:08 -05:00 |
|
David Heinemeier Hansson
|
6233628ba0
|
Stopped logging template compiles as it only clogs up the log
|
2008-09-09 22:10:39 -05:00 |
|
Jeremy Kemper
|
dc0411fad7
|
Check for uninitialized instance variables
|
2008-09-08 19:57:32 -07:00 |
|
Joshua Peek
|
8eec694598
|
Prefix ActionView::Base private methods with an underscore
|
2008-08-31 10:50:43 -05:00 |
|
Pratik Naik
|
a59a3db1f3
|
Move copying ivar logic from ActionController::Base to ActionView::Base
|
2008-08-31 03:48:09 +01:00 |
|
Joshua Peek
|
cd91a8d3ad
|
defined? has no bounds
|
2008-08-26 15:21:06 -05:00 |
|
Joshua Peek
|
9853134b4f
|
Require missing libraries and check for defined ActionController constant so ActionView can be used standalone
|
2008-08-26 15:13:28 -05:00 |
|
Joshua Peek
|
c1a8690d58
|
Consistently use the framework's configured logger and avoid reverting to RAILS_DEFAULT_LOGGER unless necessary.
|
2008-08-18 23:36:13 -05:00 |
|
Ryan Bates
|
38c7d73e73
|
pass yielded arguments to block for ActionView::Base#render with :layout [#847 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-08-17 19:29:24 -05:00 |
|
Jeremy Kemper
|
b7529ed1cc
|
Simplifying usage of ETags and Last-Modified and conditional GET requests
|
2008-08-07 23:43:12 -07:00 |
|
Joshua Peek
|
55adaa2efc
|
Fixed bc5896e, and added test case for the caching bug it originally introduced.
|
2008-07-23 13:47:30 -05:00 |
|
Tom Ward
|
c3d1fda555
|
Set the response content type to that of found template if not explicitly set elsewhere [#444 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-07-18 20:14:12 -05:00 |
|
Joshua Peek
|
d2ccb852d4
|
Removed lagacy TemplateHandler#render API. Left in a legacy TemplateHandler and Compilable stub so plugins will not have to change anything.
|
2008-07-18 16:00:20 -05:00 |
|
Joshua Peek
|
ef6f6625c9
|
Changed ActiveSupport::Memoizable API to extend since it mainly adds the memoize class method
|
2008-07-18 15:32:28 -05:00 |
|
Stefan Kaes
|
c64d749abd
|
Fixed template recompile logic [#630 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-07-16 08:26:23 -05:00 |
|
Joshua Peek
|
83e29b9773
|
Removed config.action_view.cache_template_loading, use config.cache_classes instead
|
2008-07-15 22:58:42 -05:00 |
|
Joshua Peek
|
001c8beb4d
|
memorize typo
|
2008-07-14 20:02:59 -05:00 |
|
Joshua Peek
|
dd41f66af5
|
Include Memoizable in ActionView::Template
|
2008-07-14 19:51:43 -05:00 |
|
Joshua Peek
|
9dc258d614
|
Eager load Partial variable_name and counter_name. Tidy up render_partial_collection.
|
2008-07-14 17:40:58 -05:00 |
|
Jeremy Kemper
|
2d6562d51b
|
Move dead recompile_template? also
|
2008-07-14 13:51:59 -07:00 |
|
Joshua Peek
|
e0fef66149
|
Made ActionView::Base#first_render a little more private. And added _last_render to track the most recent render. Will fix #609 as a side effect. [#609 state:resolved]
|
2008-07-13 13:26:48 -05:00 |
|
Joshua Peek
|
73b34e9f75
|
Refactor template preloading. New abstractions include Renderable mixins and a refactored Template class.
|
2008-07-12 14:33:46 -05:00 |
|
Joshua Peek
|
6ebdd0e32b
|
Changed ActionView::TemplateHandler#render API method signature to render(template, local_assigns = {})
|
2008-07-11 15:40:41 -05:00 |
|
Joshua Peek
|
1d8623b42f
|
Added local assign keys to compiled method name so two threads evaluating the same template with different locals don't step on top of each other
|
2008-07-06 01:13:15 -05:00 |
|
Joshua Peek
|
9828aecd2a
|
Lookup compiled methods in CompiledTemplates instance methods set instead of using a "methods_names" hash
|
2008-07-05 23:54:11 -05:00 |
|
Joshua Peek
|
39ba2da82b
|
Moved complied method name logic into Renderable
|
2008-07-05 16:27:43 -05:00 |
|
Joshua Peek
|
1dcc59121b
|
Renamed Renderer to Renderable
|
2008-07-05 12:05:50 -05:00 |
|