defmodule TestTestTest.Redirect do
use Weber.Controller
layout false
def render_other_action([], _conn) do
{:render_other_action, :action1, [binding: "original value"]}
end
def render_other_controller([], _conn) do
{:render_other_controller, :TestTestTest.Main, :action1, [binding: "original value"]}
end
def action1([binding: value], _conn) do
{:text, value, []}
end
end
Here's the example usage: