4 ms·
> It would be awesome if they were using some sort of macro system / templating engine to consistently expand {{html_prog}} and {{html_markup}} just to keep it
by jraph 3y ago
> It would be awesome if they were using some sort of macro system / templating engine to consistently expand {{html_prog}} and {{html_markup}} just to keep it straight while they're writing it.
You could use the <template> tag.
<template id="my-macro-name">
<!-- some operations -->
</template>
To use it:
<source src="my-macro-name"/>
Using source to look familiar to bash users because why not.
- recursivedoubts 3y agoBy the way, you can implement in HTML, the programming language, because it is extensible! https://html-lang.org/#extending https://html-lang.org/#extending
- paulddraper 3y agoMaybe even <script src="my-macro-name" type="macro"></script>