2 ms·
This is something I've long believed. A Data Style Sheet to go along with the raw HTML and CSS. You could even make it as designer-friendly as JQuery while sti
by tmzt 9y ago
This is something I've long believed. A Data Style Sheet to go along with the raw HTML and CSS.
You could even make it as designer-friendly as JQuery while still building modern isometric SPAs as output.
For example:
#users { from: store.users |where roles.includes('Admin')}
- jlebrech 9y agoCascading Data Sheet? that it exactly what i'd want. I saw yaml based templating like slim or haml but then thought it was such a shame to see 'div' or 'b', etc in there.
- tmzt 9y agoYep, it would even interpret the designer's dummy data as a repeating template. If it couldn't figure out the mapping CDS could give hints as appropriate. The best part is it could be compiled into a component like JSX but wouldn't prevent the page from being previewed with no programming implemented at all. The template would basically be an HTML mockup.
- jlebrech 9y agoyep, a fully designed dummy just gets manipulated without any code being added to it at all. then there's no chance to get in each other's way, as long as the designer names the classes correctly.
- tmzt 9y agoAs long as they name them consistently really, you would just need to provide custom transform/pattern rules if they could not be detected. I might work out a prototype of this once I get my framework off the ground.