¿Cómo agrego atributos de datos a un script usando el constructor HTML?

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

6 Me gusta