I’m new to ember. is the h function that is used in some pages to build HTML part of the ember project? I haven’t been able to find documentation on it.
The specific problem I am trying to solve is add a data attribute to a script tag I am creating.
Ah yeah. The only documentation we reference that I can find is virtual-dom/README.md at master · Matt-Esch/virtual-dom · GitHub and it’s sort of hidden in our codebase as a comment Even with that I couldn’t find the answer you are looking for there. In any case, there is a topic here on Meta that does have the solution:
So based on the code you provided, it should work if you change it to the following: