You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hmmm yes. I guess this is something I didnt think of.
so I guess In my head I wanted to make the block required since I didn't want my sre/developers to "forget" that they needed to supply a block, because it's not so clear if a snippet uses a block or not.(without looking at the snippet. which is something they usually wouldn't have written)
for now of course you should be able to put just an empty block like {}, and it will work I hope?
I think you're right that probably it should just silently substitute to nothing? I can see a use case where you want to provide optional options and therefore would want to skip the block.
I come from the Vue world and there are slots for components where you can render additional stuff and when the user doesn't implement them, they won't ne shown.
Apart from that it's a great project and I'm happy now to have a server now that I can maintain as a frontend dev without all the admin hassle.
If I have this snippet:
This works:
But this doesn't:
So basically the block is always mandatory and it's not possible to not declare it.
(The example doesn't make any sense, it's basically to show the issue.)
The text was updated successfully, but these errors were encountered: