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

Fix component examples in the docs + investigate body render #228

Closed bob2517 closed 2 years ago

bob2517 commented 2 years ago

About 5 of the docs examples for components are not working.

Ooops...

It looks like body as a selector is no longer allowing the render command. Render-after-begin works fine. That needs a fix.

There are a couple of other syntax errors in those examples too, which I've fixed. Offline, all the docs examples work with amended syntax and will go live with 2.10.0. They should probably go into the code editor for each page too.

All the docs for components need enhancing for the 2.10.0 updated syntax.

bob2517 commented 2 years ago

If anyone wants an actual working copy of the component examples before 2.10.0 is released, then just let me know in this issue and I'll post them.

bob2517 commented 2 years ago

body render seems to have trouble rendering components. Regular text seems fine. Render-after-begin, etc. work fine though. Not limited to body:init - same issue when ran at other times.

bob2517 commented 2 years ago

Several hours later and...

Oh.... if you do a body render, then everything in the body gets removed. Including any ACSS tags containing config.

That would do it every time.

Doh. I think this can be put down as a gotcha red herring.