Active-CSS / active-css

The epic event-driven browser language for UI with functionality in one-liner CSS. Over 100 incredible CSS commands for DOM manipulation, ajax, reactive variables, single-page application routing, and lots more. Could CSS be the JavaScript framework of the future?
https://activecss.org
Other
42 stars 7 forks source link

Run command breaking with some JS #223

Closed bob2517 closed 2 years ago

bob2517 commented 2 years ago

This is fixed offline. Functions should now be allowed.

Note that // comments are not supported anywhere in ACSS, including embedded JS. Also note that semi-colons are necessary as end of line characters in embedded JS.

The core is designed for handling minified config, hence these points. It's why "/ comment /" can stripped out but "//" cannot. "//" in a minified config will comment out everything from that point to the end of the config.

This might change later on if a minifier gets built and things move to the back-end. On the back-end, "//" can then be allowed, as it can be stripped out prior to minification, and semi-colons added to lines for parsing where appropriate.