Happy !

sebastianconcept / ConfigurationFiles

Project infos

License MIT
Tags static, configuration, convenience
Creation date 2014-05-13
Website

Monticello registration

About ConfigurationFiles

This small package adds you the power to easily read configured values in files.

Those files follow an opinionated convention:

  1. must be in the conf/ subdir

  2. must have the .conf extension

  3. the file should be a text file that, when compiled, returns a Dictionary with the values

Example:

Access the #port attribute for Seaside conf file:

ImageDir/conf/Seaside.conf

ConfigurationFiles at: 'Seaside' at: #port

Access the #domain attribute for MyApp conf file:

ImageDir/conf/MyApp.conf

ConfigurationFiles at: 'MyApp' at: #domain