You could take a look at how phoenix.new works. It creates config.exs with some initial values. This should be a good starting point.
Michał. > On 01 Aug 2016, at 12:21, Narcissus Emi <[email protected]> wrote: > > Hi, > > I'm now running a project which needs to generate config file based on user > configurable key/value pair, I would like to create a user.exs(imported from > config.exs) to before recompile and deploy the file all > programmatically,currently I'm stucked at creating this exs file part. > > Since a exs is just a valid keyword list, I think maybe using > IO.inspect(keywords) and write to a file is already enough? Or is there any > libs or methods we can do it more elegantly? > > Hope anybody came across similar problem before, any help would be real > appreciate :) > > -- > You received this message because you are subscribed to the Google Groups > "elixir-lang-talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang-talk/f4cc9a4c-5a83-43b5-8c4b-d9dd72f57b92%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/9AC2535E-67B3-4184-AD67-4601783D941F%40muskala.eu. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Message signed with OpenPGP using GPGMail
