Reputation: 622
To have configuration data in native erlang source is not very useful - it creates difficulties in automatic generation of config and further distribution of project.
One of the approach is to transform your configuration data into an Erlang source module that makes the configuration data available through exports.
What exist libraries to do it. I found only cuttlefish unfortunately is not supported R17 yet.
Upvotes: 0
Views: 60
Reputation: 7914
You can format the configuration data as Erlang tuples and then use file:consult/1.
Upvotes: 1