Skip to content

Instantly share code, notes, and snippets.

@awestbro
Created March 12, 2017 21:51
Show Gist options
  • Select an option

  • Save awestbro/e4da5ea0beea3f1d989a328d17aedef2 to your computer and use it in GitHub Desktop.

Select an option

Save awestbro/e4da5ea0beea3f1d989a328d17aedef2 to your computer and use it in GitHub Desktop.

Revisions

  1. awestbro created this gist Mar 12, 2017.
    6 changes: 6 additions & 0 deletions web.ex
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    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]