Habibutsu
Habibutsu

Reputation: 622

What exist libraries for transform your configuration data into an Erlang source

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

Answers (1)

aronisstav
aronisstav

Reputation: 7914

You can format the configuration data as Erlang tuples and then use file:consult/1.

Upvotes: 1

Related Questions