Current section

37 Versions

Jump to

Compare versions

8 files changed
+17 additions
-20 deletions
  @@ -16,7 +16,7 @@ _If you are having problems, view `README_INSTALL.md` for manual instructions._
16 16
17 17 ```elixir
18 18 def deps do
19 - [{:thesis, "~> 0.0.8"}]
19 + [{:thesis, "~> 0.0.9"}]
20 20 end
21 21
22 22 def application do
  @@ -27,7 +27,7 @@
27 27 <<"package.json">>]}.
28 28 {<<"licenses">>,[<<"MIT">>]}.
29 29 {<<"links">>,
30 - [{<<"Docs">>,<<"https://hexdocs.pm/thesis/0.0.8/api-reference.html">>},
30 + [{<<"Docs">>,<<"https://hexdocs.pm/thesis/0.0.9/api-reference.html">>},
31 31 {<<"GitHub">>,<<"https://github.com/infinite_red/thesis">>}]}.
32 32 {<<"maintainers">>,
33 33 [<<"Jamon Holmgren">>,<<"Ken Miller">>,<<"Daniel Berkompas">>]}.
  @@ -53,4 +53,4 @@
53 53 [{<<"app">>,<<"plug">>},
54 54 {<<"optional">>,false},
55 55 {<<"requirement">>,<<"~> 1.0">>}]}]}.
56 - {<<"version">>,<<"0.0.8">>}.
56 + {<<"version">>,<<"0.0.9">>}.
  @@ -58,15 +58,15 @@ defmodule Mix.Tasks.Thesis.Install do
58 58 end
59 59
60 60 defp insert_controller(source) do
61 - insert_at(source, "def controller do\n quote do", "\n use Thesis.Controller\n")
61 + insert_at(source, "use Phoenix.Controller\n", "\n use Thesis.Controller\n")
62 62 end
63 63
64 64 defp insert_view(source) do
65 - insert_at(source, "def view do\n quote do", "\n use Thesis.View\n")
65 + insert_at(source, "use Phoenix.View, root: \"web/templates\"\n", "\n use Thesis.View\n")
66 66 end
67 67
68 68 defp insert_router(source) do
69 - insert_at(source, "def router do\n quote do", "\n use Thesis.Router\n")
69 + insert_at(source, "use Phoenix.Router\n", "\n use Thesis.Router\n")
70 70 end
71 71
72 72 defp insert_at(source, pattern, inserted) do
  @@ -21,7 +21,6 @@ defmodule Thesis.Controller do
21 21
22 22 defmacro __using__(_) do
23 23 quote do
24 - use Phoenix.Controller
25 24 plug Thesis.Controller.Plug
26 25 end
27 26 end
  @@ -24,8 +24,6 @@ defmodule Thesis.Router do
24 24 defmacro __using__(_) do
25 25 # Reserved for future use
26 26 quote do
27 - use Phoenix.Router
28 -
29 27 pipeline :thesis_pipeline do
30 28 plug Plug.Static, at: "/thesis", from: :thesis, gzip: true,
31 29 cache_control_for_etags: "public, max-age=86400",
Loading more files…