toolness / p5.js-widget

A reusable widget for embedding editable p5 sketches in web pages.
https://toolness.github.io/p5.js-widget/
GNU Lesser General Public License v2.1
162 stars 44 forks source link

Allow embedder to explicitly specify a URL to p5 #48

Open toolness opened 8 years ago

toolness commented 8 years ago

From #45:

We might also want to make it possible to add a data attribute to the widget's <script> tag that allows the embedder to specify a self-hosted version of p5 to use, too, since we currently retrieve that over CDN. This would allow for offline use-cases.

toolness commented 8 years ago

One way to do this is to overload data-p5-version so that it accepts either a version of the form "x.y.z" or an absolute/relative URL to a specific p5 file. Hmm.