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

Add if-empty-trimmed conditional #194

Closed bob2517 closed 2 years ago

bob2517 commented 2 years ago

I had a situation where I needed to check if an input field was empty to determine whether or not to send it to the server. But I wanted it trimmed so that spaces weren't sent, as there's no point sending it for it only to come back again saying gimme some actual content. Hence a requirement for a handy if-empty-trimmed conditional. Then trimming can happen on the server as required.

This is now on the branch.

bob2517 commented 2 years ago

Closing in preparation for release.