You don’t want to do it that way. You need to develop a plugin (or perhaps theme component). See Beginner’s Guide to Creating Discourse Plugins Part 1: Creating a basic plugin and Developer’s guide to Discourse Themes.
You don’t want to do it that way. You need to develop a plugin (or perhaps theme component). See Beginner’s Guide to Creating Discourse Plugins Part 1: Creating a basic plugin and Developer’s guide to Discourse Themes.