We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(As opposed to being forced to use addict/addict.html)
The text was updated successfully, but these errors were encountered:
can you not change
plug :put_layout, {Addict.AddictView, "addict.html"}
to be a different file?
Sorry, something went wrong.
@joshuaswilcox i was under that impression, too, but it somehow has no effect.
i tried
plug :put_layout, {MyApp.LayoutView, "app.html"}
Hmm, yeah i thought i had that working, but I guess not
I seems that doing that in the controller does nothing because in addict/lib/addict/controller.ex
addict/lib/addict/controller.ex
defp put_addict_layout(conn) do conn |> put_layout({Addict.AddictView, "addict.html"}) end
is defined and piped into each route
def login(%{method: "GET"} = conn, _) do csrf_token = generate_csrf_token conn |> put_addict_layout |> render("login.html", csrf_token: csrf_token) end
so I guess you need to override the controller to change it
No branches or pull requests
(As opposed to being forced to use addict/addict.html)
The text was updated successfully, but these errors were encountered: