newsdev / ai2html

A script for Adobe Illustrator that converts your Illustrator artwork into an html page.
http://ai2html.org
Other
897 stars 145 forks source link

Adds support for settings in a config.yml located in same directiory. #95

Open brizandrew opened 6 years ago

brizandrew commented 6 years ago

By including this small addition, the script will look for a file called config.yml located in the same directory as the open AI file. The current system already has a system to output settings to such a file with the includeInConfigFile setting.

Settings will now be loaded (in order from least to the most precedence):

If no settings block is found inside the AI file, the value created in the block will also follow the same order of precedence (values in config.yml will overwrite the base settings).

This isn't a direct fix to #86, but it can potentially help make the script's configuration more robust.