Closed nhoening closed 12 years ago
driveby-sharing needs two settings for share.php and one for dialog.js. Shared-widget needs one for widget.js.
What if we make a config.js file, which gets loaded before the main javascript, and have php read from it as well (http://www.phptutorial.info/?file)? Alternatively, we could have a .js and a .php file separately.
Any config files would in our repository only exist with a .template ending.
Also look out for shared-widget/widget.css, which would be overwritten when all files get uploaded. better remove it from the repository, or rename it to widget.css.template.
I'll follow this approach, that's what I had in mind anyway: http://www.sitepoint.com/using-json-for-language-independent-configuration-files/
... and as such gritttt-files can always be uploaded w/o overwriting your customm config.