3 ms·
I think the idea is a little rough around the edges but it has good bones. I think a better name might be something like "procedural HTML" since I think you're
by Spivak 7y ago
I think the idea is a little rough around the edges but it has good bones. I think a better name might be something like "procedural HTML" since I think you're envisioning something like
add paragraph "content"
push division
add image
add attr src "https://..."
add attr alt "cute cat"
add paragraph "more content"
pop division
...
But obviously with much terser syntax. Everyone seems to be on the declarative train these days that it's nice to see some interesting procedural work.
Such a thing composes pretty nicely too since basically any sequence of statements grouped together can be used as a component.