3 ms·
I think HTML benefits well from an additional abstraction level. For example, for our blog we use wordpress style shortcodes[1] (or other html templating reall
by wraptile 4y ago
I think HTML benefits well from an additional abstraction level. For example, for our blog we use wordpress style shortcodes[1] (or other html templating really) which essentially turns:
[%url https://example.com https://example.com "see my example" %]
to
<a class="article-link" href="https://example.com https://example.com" rel="noopener noreferrer">see my example</a>
I feel that HTML grew way out of control to be used directly - it's absolutely unreadable and refactoring quickly becomes a huge danger zone even with brilliant existing tools. With IDE watcher tools you can easily setup automated previews to be rendered along side the files you're working on which imho is the way to go when directly working with HTML these days.
1 - https://github.com/Granitosaurus/shortcoder https://github.com/Granitosaurus/shortcoder