nhoening / gritttt-rss

Implements 'cancelled' sharing-features of Google Reader for the excellent open-source RSS-Reader TinyTiny-RSS: share any page on the web via a bookmarklet and show your shared items in a widget on any website you want. Also allow to import shared&starred articles from Google Reader.
gritttt-rss.nicolashoening.de
Other
48 stars 4 forks source link

configuration in extra files or code (which don't belong to gritttt) #28

Closed nhoening closed 12 years ago

nhoening commented 12 years ago

... and as such gritttt-files can always be uploaded w/o overwriting your customm config.

nhoening commented 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.

nhoening commented 12 years ago

I'll follow this approach, that's what I had in mind anyway: http://www.sitepoint.com/using-json-for-language-independent-configuration-files/