Skip to content

Instantly share code, notes, and snippets.

@awestbro
Created March 12, 2017 21:51
Show Gist options
  • Save awestbro/e4da5ea0beea3f1d989a328d17aedef2 to your computer and use it in GitHub Desktop.
Save awestbro/e4da5ea0beea3f1d989a328d17aedef2 to your computer and use it in GitHub Desktop.
def view do
quote do
use Phoenix.View, root: "web/templates"
# Import convenience functions from controllers
import Phoenix.Controller, only: [get_csrf_token: 0, get_flash: 2, get_flash: 1, view_module: 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment