4 ms·
I wish CSS selector based templating existed as a popular practice. Something like: a#products { --text: name_of_my_variable; --attr-href: other_variable;
by alganet 4y ago
I wish CSS selector based templating existed as a popular practice. Something like:
a#products { --text: name_of_my_variable; --attr-href: other_variable; }
ul { --list: iterate(my_list_variable); }
ul li { --text: item().name; }
I want something that allows my HTML template to be pure HTML. No template {vars}, no weird attributes, no language tags, etc. Just let me use plain HTML and target its DOM externally. XSLT can do that, but it feels like it wasn't meant to be written by humans.