Open toolness opened 8 years ago
For example, if an embedder has 10 widgets on their page and wants to specify a different p5 version for each of them, it'd be nice if they could just do:
<script src="//toolness.github.io/p5.js-widget/p5-widget.js" data-p5-version="0.4.2"></script>
Instead of having to explicitly specify the data-p5-version on all 10 <script type="text/p5"> elements.
data-p5-version
<script type="text/p5">
For example, if an embedder has 10 widgets on their page and wants to specify a different p5 version for each of them, it'd be nice if they could just do:
Instead of having to explicitly specify the
data-p5-version
on all 10<script type="text/p5">
elements.