License key in external file

Hi,

I use GoJS in a CGI application written in C. All js scripts are built from within various programs. As a consequence programs have to be recompiled when license key changes. I have tried various solutions for having the license key in a separate file and load upon execution, but nothing seems to work. Any ideas?

@Jan

The license key is just a string, so that should be straightforward. Be sure to set the static property Diagram.licenseKey before constructing any Diagram.

Thank you Walter, I will give it a try.