José Valim
|
c9fa3f03fe
|
Also allow prefixes as third argument to lookup context.
|
2011-05-04 09:07:11 +02:00 |
|
Nick Sutterer
|
eb327c1bab
|
no @controller dependency in Renderers.
|
2011-05-04 00:12:11 +02:00 |
|
José Valim
|
f9849070ac
|
Add a shared entry point for AV and AC render which can be used as extension in the future.
|
2011-05-03 16:51:47 +02:00 |
|
José Valim
|
8dbee3aba6
|
Streaming docs.
|
2011-05-01 14:50:42 +02:00 |
|
José Valim
|
46611a995d
|
log errors when an exception happens when streaming.
|
2011-05-01 13:40:14 +02:00 |
|
José Valim
|
b735761385
|
Introduce view renderer.
|
2011-05-01 13:40:13 +02:00 |
|
José Valim
|
367bdc5361
|
Remove view dependency from AV::Renderer.
|
2011-05-01 13:40:13 +02:00 |
|
José Valim
|
33cc001f91
|
More cleanup and moving responsibilities around.
|
2011-05-01 13:40:12 +02:00 |
|
José Valim
|
2f683fd870
|
Remove more dependencies from the view.
|
2011-05-01 13:40:12 +02:00 |
|
José Valim
|
d08f65118c
|
Start abstracting the renderer.
|
2011-05-01 13:40:12 +02:00 |
|
José Valim
|
b398520c14
|
Output a redirect to the 500 page if something happens when streaming.
Currently, we output:
"><script type="text/javascript">window.location = "/500.html"</script></html>
|
2011-04-19 12:26:11 +02:00 |
|
José Valim
|
0114dc38d5
|
Fix CI test on 1.8
|
2011-04-16 12:25:21 +02:00 |
|
José Valim
|
2bf0d9b06a
|
Class docs.
|
2011-04-16 12:13:29 +02:00 |
|
José Valim
|
3e0aedba90
|
Add more tests, ensure we never yield outside the fiber context and that we swap buffers when moving from parent to child.
|
2011-04-16 11:22:36 +02:00 |
|
José Valim
|
29078ff8f1
|
Basic tests for streaming. Basic tests for provide.
|
2011-04-16 10:50:33 +02:00 |
|
José Valim
|
e30ca001ef
|
Yo dawg, I heard you like streaming. So I put a fiber, inside a block, inside a body, so you can stream.
|
2011-04-16 10:28:47 +02:00 |
|
José Valim
|
fad214b9e1
|
Initial work on fibered layout.
|
2011-04-16 01:10:13 +02:00 |
|
José Valim
|
d6bd606bdd
|
render :once, YAGNI.
|
2011-04-15 21:11:54 +02:00 |
|
Akira Matsuda
|
5dd803e9b1
|
Accept String value for render_partial :as option
[#6222 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-02-01 13:01:54 -02:00 |
|
José Valim
|
51a7d9acdd
|
Final tidy up on templates inheritance.
|
2010-12-27 09:14:13 +01:00 |
|
artemave
|
6c5a3bb312
|
all tests pass
|
2010-12-26 22:32:15 -08:00 |
|
artemave
|
ddd85ef9c6
|
#948 template_inheritance
|
2010-12-26 22:32:15 -08:00 |
|
José Valim
|
ba63c0a9b5
|
Deprecate handler_class_for_extension as template handlers can be any Ruby object, not necessarily a class.
|
2010-12-01 11:22:48 +01:00 |
|
Santiago Pastorino
|
27f4ffd11a
|
Make collection and collection_from_object methods return an array
This transforms for instance scoped objects into arrays and avoid unneeded queries
[#5958 state:committed]
|
2010-11-13 04:02:57 -02:00 |
|
Santiago Pastorino
|
6c8ea83385
|
extract formats_regexp as a method
|
2010-10-16 14:12:41 -02:00 |
|
Santiago Pastorino
|
15d3c77bc2
|
There's no need now to expose lookup_context as an external API
|
2010-10-16 13:42:19 -02:00 |
|
Santiago Pastorino
|
0d00d65ad2
|
Delegate freeze_formats to lookup_context
|
2010-10-16 13:39:11 -02:00 |
|
Jeff Kreeftmeijer
|
b454bb0a98
|
Remove the :vew attr_reader from ActionView::AbstractRenderer [#5819 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2010-10-16 13:02:14 -02:00 |
|
José Valim
|
01ab6f961b
|
Remove :cache => true on lookup templates initialization.
|
2010-10-14 09:47:49 +02:00 |
|
José Valim
|
37d78028b2
|
render :once should consider the current controller prefix.
|
2010-10-14 09:27:18 +02:00 |
|
José Valim
|
682368d4ba
|
Use identifiers for template equality.
|
2010-10-10 23:12:22 +02:00 |
|
José Valim
|
940b57789f
|
Add support to render :once.
This will be used internally by sprockets to ensure requires are executed just once.
|
2010-10-10 12:43:26 +02:00 |
|
José Valim
|
b88f4ca93b
|
Clean up the house before moving in the new furniture.
This commit moves all the template rendering logic that was hanging around AV::Base to renderer objects.
|
2010-10-10 12:43:26 +02:00 |
|