["script[type='module']"] action = "wrap" template =''' <div id="root"> <button id="start_game">Start Game</button> </div> <script> let content = `{{{}}}`; document.addEventListener('DOMContentLoaded', () => { document.getElementById('start_game').addEventListener('click', function() { this.innerHTML = content }); }); </script>'''