Vote #75531
完了Ability to render multiple partials with view hook
0%
journals
Isn't it easier to add a "parent" partial that groups the other ones you'd want to render ? Maybe you can explain why this is needed.
Plus we need to have some tests if we ever want to merge this in.
--------------------------------------------------------------------------------
It's easier, in case of multiple partials within one plugin, but if you have multiple plugins using the same hook - it's a problem.
--------------------------------------------------------------------------------
any thoughts?
--------------------------------------------------------------------------------
This patch assumes that we're rendering partials which is just one of the many #render options.
I'd like something that does not depend on that.
--------------------------------------------------------------------------------
Here is another option, feedback is welcome. Basically, the syntax would be:
<pre>
render_on :some_hook, :partial => "show_more_data"
render_on :some_hook, {:partial => "show_more_data"}, {:partial => "show_even_more_data"}
render_on :some_hook, {:partial => "show_more_data"}, {:inline => "<%= show_even_more_data %>"}
</pre>
--------------------------------------------------------------------------------
Feature added in r13449.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------