Wie füge ich Datenattribute zu einem Skript mit dem HTML-Builder hinzu?

There is also this post that explains how the virtual dom / widget part of Discourse works: