trenpixster / addict

User management lib for Phoenix Framework
MIT License
645 stars 99 forks source link

Add config for base_layout #130

Closed vsmart closed 5 years ago

vsmart commented 7 years ago

Hi @trenpixster :wave:

This fixes #129.

However, there is still some manual work-arounds I had to make. The view is also hard-coded here, and I couldn't think of a great way to parameterise it.

The solution I used for my codebase, is a work-around that requires my custom view within the AddictView module: https://github.com/vsmart/friend_garden/blob/d03a6d052c6ab79f34a782defbe72d15cd629509/web/views/addict_view.ex

I'd love if you have any better suggestions.

Nevertheless, this PR should work for those who only need to adjust the base template.