fengari-lua / fengari-web

Provides everything you need to run Fengari in the browser.
MIT License
254 stars 18 forks source link

Versioning #13

Closed daurnimator closed 6 years ago

daurnimator commented 7 years ago

For forwards compatibility, we need some sort of flag attribute(s) for <script> tags.

e.g. <script type="application/lua" fengari-min-version="0.2.1" lua-version="5.3">

daurnimator commented 6 years ago

24 lets us check lua version, that is enough to prevent syntax errors going forward.

For the actual fengari version, I think user scripts could just check them themselves. So that just requires a way to get the fengari version number.