Skip to content

Commit db633a2

Browse files
authored
Document running Kaffy with Phoenix 1.7
Updated readme
2 parents ec3e0ea + 36bdb99 commit db633a2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ def deps do
7373
]
7474
end
7575
```
76+
as of phoenix version 1.7 you need the following dependencies
77+
```elixir
78+
def deps do
79+
[
80+
{:phoenix_view, "~> 2.0.2"},
81+
{:kaffy, "~> 0.9.2"}
82+
]
83+
end
84+
```
7685

7786
#### These are the minimum configurations required
7887

@@ -112,6 +121,16 @@ pipeline :kaffy_browser do
112121
plug :put_secure_browser_headers
113122
end
114123
```
124+
### Phoenix version 1.7
125+
Note that if you use Phoenix version 1.7 you also need to manually add the use of phoenix views in your project.
126+
Follow the instructions at https://hexdocs.pm/phoenix_view/Phoenix.View.html
127+
128+
You will also need to change `helpers: false` to `true` as shown in example below.
129+
```elixir
130+
def router do
131+
quote do
132+
use Phoenix.Router, helpers: true
133+
```
115134

116135
## Customizations
117136

0 commit comments

Comments
 (0)