trenpixster/addict

Changing base layout

vsmart opened this issue · 2 comments

Hi @trenpixster

thanks for this great library! It's been super helpful for me so far.

I'm trying to configure the styling of the addict templates. I can modify the form elements, but how can I change the base layout (addict.html) to use my app's existing base layout (app.html)?

As far as I can tell, using addict.html is hard-coded here... https://github.com/trenpixster/addict/blob/master/lib/addict/controller.ex#L151-L154

Would appreciate any pointers. Thanks.

That's a good question.. I didn't input any extensibility point there unfortunately. But it makes sense to have it. In the mean time I'd say you could take a peek at the controller implementations and override those routes on your router. Does this make sense for your use case?

seems like this is an issue where the readme should be updated?