elixir-web / weber

[WiP] Web framework for Elixir inspired by Rails [#WeberMVC at freenode]
http://elixir-web.github.io/weber/
MIT License
370 stars 33 forks source link

To add render_other_controller response type #167

Closed 0xAX closed 10 years ago

0xAX commented 10 years ago

The same as #166, but render from other controller.

Example:

...
{:render_other_controller, :Main.Controller.action1, [binding: val]}
rcdilorenzo commented 10 years ago

Unfortunately, this 2nd argument :Main.Controller.action1 actually calls the function... Is is possible for this to be declared as this since it is more consistent with how routes are declared:

{:render_other_controller, :Main.Controller, :action1, [binding: val]}