Skip to content

Instantly share code, notes, and snippets.

@sobolevn
Last active April 30, 2017 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sobolevn/7248333c17c5eba84a4dba23c54d8dec to your computer and use it in GitHub Desktop.
Save sobolevn/7248333c17c5eba84a4dba23c54d8dec to your computer and use it in GitHub Desktop.
defmodule MediumPhxExample.Web do
def controller do
quote do
use Phoenix.Controller, namespace: MediumPhxExample.Web
import Plug.Conn
# Before 1.3 it was just:
# import MediumPhxExample.Router.Helpers
import MediumPhxExample.Web.Router.Helpers
import MediumPhxExample.Web.Gettext
end
end
# Some extra code:
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment