Skip to content

Instantly share code, notes, and snippets.

@neslinesli93
Last active January 2, 2020 20:18
Show Gist options
  • Save neslinesli93/acbbfee1e303817ab1bcf38b44dc7a22 to your computer and use it in GitHub Desktop.
Save neslinesli93/acbbfee1e303817ab1bcf38b44dc7a22 to your computer and use it in GitHub Desktop.
Import modules inside breakoutex_web.ex
def controller do
quote do
# ...other import/alias directives
import Phoenix.LiveView.Controller
end
end
def view do
quote do
# ...other import/alias directives
import Phoenix.LiveView, only: [live_render: 2, live_render: 3]
end
end
def router do
quote do
# ...other import/alias directives
import Phoenix.LiveView.Router
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment