chrisjowen
Custom Phoenix/Ecto generators?
Hey All,
Im probably in the minority in that I generally dislike some of the way that the Ecto/Phoenix generators work in and would like to have more control over what they produce. Im not here to argue this, and I havent enough Elixir experience to solidify my arguments againt them.
I usually avoid using them, but for a recent project I tried to get running as quickly as possible and relied on they heavily. I believe that generators are very useful for quick scaffolding and I would use them if they fit my defaults more (which change per project).
With this in mind do we have anything the elixir community that is a generator of generator such as GitHub - foundweekends/giter8: a command line tool to apply templates defined on GitHub · GitHub or https://yeoman.io/?
Note: I’m not looking at these as shining example in their respective ecosystems I have used both and disliked the experience but I have never sat down and thought what good would look like for such a tool I just have a feeling that a flexible easy to use generator would be extreemly useful for me.
Chris
Most Liked
LostKobrakai
You can copy the templates phoenix/priv/templates at main · phoenixframework/phoenix · GitHub into your own priv/templates folder and the mix tasks will use those. You’re free to edit them there.
type1fool
Thank you for the link. This should be documented.
jg-made
Has anyone out there made any LiveView generators? If so, would you please share? ![]()








