cjss-group / CJSS

A CSS based web framework
https://cjss.js.org/
MIT License
670 stars 20 forks source link

Use JSON for data attributes #31

Closed c-harding closed 5 years ago

c-harding commented 5 years ago

As discussed in #7, eval can be avoided in data, and so I have converted this to JSON. This is a breaking change, as JS Under #26, this functionality could be restored once plugins are implemented, with js()/js-expr() data.

Because this is a breaking change, I have made sure that the error is properly logged to console, and added error handling for HTML and JavaScript too.

KargJonas commented 5 years ago

Nice! Thank you :pray: