plentico / pico

Svelte-like reactive UI compiler written in Go
2 stars 0 forks source link

Conditional attributes and partial tags #3

Open jimafisk opened 2 years ago

jimafisk commented 2 years ago

It would be nice if conditional blocks did not have to wrap an entire HTML element and could be used within elements or around partial elements:

This might be difficult given the compiler wants to create entire elements, but it would behave more similar to other templating engines and give the user more flexibility.