Closed tamb closed 4 years ago
Agree this is useful enhancement. I wold like to see this with such syntax:
event-name = namespace ':' event
namespace = a-z
event = a-z-
Examples:
pill:mount
pill:ready
pill:complex-event
In my opinion it's closer to XML-namespaces which also are separated with the colon.
Each stage of content fetching and rendering should offer namespaced events. like
pill.mounted
and thedetail
object contains the same data the hook would This opens the door for other scripts to hook into pill without being in the same module.