What I would like to see: <i>client-side</i> template ability to insert a chunk of DOM nodes into the page from a URL, without having to invoke Javascript.<p>You can insert an image, a video, a SVG, or even an iframe from a URL, but you can't insert a <div>.
I wish CSS selector based templating existed as a popular practice. Something like:<p><pre><code> a#products { --text: name_of_my_variable; --attr-href: other_variable; }
ul { --list: iterate(my_list_variable); }
ul li { --text: item().name; }
</code></pre>
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.
I'm using Haml kinda like JSX in my framework, it's really nice. I'm using <a href="https://github.com/ruby-syntax-tree/syntax_tree-haml">https://github.com/ruby-syntax-tree/syntax_tree-haml</a> to transform Haml into Ruby. Works great.
I have a very simple Python library in PyPI [0] that generates XML from a data structure representing the AST.<p>[0] <a href="https://pypi.org/project/xml-from-seq/" rel="nofollow">https://pypi.org/project/xml-from-seq/</a>