Closed BryanJBryce closed 5 years ago
@riverrun I can take this on, but how do you want to handle backwards compatibility with older versions of Phoenix, do you care to?
I am about to release version 2.0.0, and so maybe we can work on having 2.0 go with Phoenix 1.4.
Fixed in #11
https://gist.github.com/chrismccord/bb1f8b136f5a9e4abc0bfc07b832257e
Add a Routes alias and update your router calls
A Routes alias has been added to app_web.ex for view and controller blocks in favor over the previously imported AppWeb.Router.Helpers.
The new Routes alias makes it clearer where page_path/page_url and friends exist and removes compile-time dependencies across your web stack. To use the latest conventions, make the following changes to app_web.ex:
Next, update any controllers, views, and templates calling your imported helpers or static_path|url, to use the new alias, for example: