Some issues configuring a theme component to integrate with pretix

So this took a few distinct pieces to solve, I’ll note them here for future explorers.

  • <script type="text/discourse-plugin" /> (surprising)
  • loadScripts (neat)
  • api.decorateCookedElement (not the first thing I thought to search for)
  • api.pageLoaded (useful)

And with only ‘configuration’ I managed to integrate pretix and my Discourse site.