I would like to be able to write <div class="inlined">content</div>
or so, and have it transformed into some other html, using the content, and as defined by inlined
. I would like to do this in pure CSS ie., no javascript.
For instance, that would be a function inlined
:
<div data-descr="content"/> -> <div class="container"><div class="topright">content</div></div>
With some implementation "like":
div[data-descr] {
content: <div class="container"><div class="topright">attr(data-descr)</div></div>;
}
If no pure CSS can be used, what would be a less/sass/js solution?