OpenTechSchool / website-relaunch

🚀 🖥 Rebuilding the opentechschool.org website
http://website-relaunch.opentechschool.org/
8 stars 5 forks source link

Add JSONP Helper for Meetup-API #28

Closed gnunicorn closed 7 years ago

gnunicorn commented 7 years ago

The meetup API still doesn't allow us to make proper CORS requests so this PR adds a JSONP library and an additional fetchJSONPAndRender function.

It furthermore simplifies the usage pattern of both fetch*AndRender functions: if you don't supply a render function yourself it will directly pass the data into the first template passed in.

Last but not least, it features an example of this new feature with the meetup API on the chapter pages. Check it out at /berlin.

OpenTechSchool:meetup-cors