Skip to content

Instantly share code, notes, and snippets.

Lauren Fackler laurenfackler

Block or report user

Report or block laurenfackler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
laurenfackler / email_preview_controller.ex
Last active Dec 3, 2019
Elixir/Phoenix email preview controller
View email_preview_controller.ex
defmodule MyAppWeb.EmailPreviewController do
use MyAppWeb, :controller
plug(:put_layout, false)
def index(conn, _) do
emails =
|> Emails.__info__()
|> Keyword.keys()
You can’t perform that action at this time.