Hi, the weekend coder here,
I’m enjoying writing my template code in Elixir in a view file using the html helpers rather than in the template files. I’d like to have more than one view file for a page so that I can keep track more easily. For example, I have a page with tabs and each tab has a different partial template. The file for the view is going to become quite long when the bulk of the template partial code migrates into the view.
How can I break-up my view file into multiple view files?
Ta.
I’d look into defdelegate as a first thought, can have as many modules as you want and the main one can defdelegate the actual methods to various specific modules.
defdelegate! Didn’t know that existed
That looks like it will do exactly what I was wanting to do.
Thx Brian