Skip to content

Commit

Permalink
Document running Kaffy with Phoenix 1.7
Browse files Browse the repository at this point in the history
Updated readme
  • Loading branch information
aesmail authored Apr 10, 2023
2 parents ec3e0ea + 36bdb99 commit db633a2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ def deps do
]
end
```
as of phoenix version 1.7 you need the following dependencies
```elixir
def deps do
[
{:phoenix_view, "~> 2.0.2"},
{:kaffy, "~> 0.9.2"}
]
end
```

#### These are the minimum configurations required

Expand Down Expand Up @@ -112,6 +121,16 @@ pipeline :kaffy_browser do
plug :put_secure_browser_headers
end
```
### Phoenix version 1.7
Note that if you use Phoenix version 1.7 you also need to manually add the use of phoenix views in your project.
Follow the instructions at https://hexdocs.pm/phoenix_view/Phoenix.View.html

You will also need to change `helpers: false` to `true` as shown in example below.
```elixir
def router do
quote do
use Phoenix.Router, helpers: true
```

## Customizations

Expand Down

0 comments on commit db633a2

Please sign in to comment.