I need to insert a widget that runs on load. Typically, in a regular HTML page, I would include the script:
<script src="rectangleDrawing.js"></script>
Then, I would add a div
as a placeholder:
<div name="rectangle></div>
The issue now is that I can't simply add the script
tag to the template because it gets removed. Additionally, the rectangleDrawing.js
file does not export itself as a module.
What is the best way to approach this?