Building a plugin in Discourse can be really simple, once you learn a couple of quirks. The goal of this post is to create a skeleton plugin and introduce you to the basics.
Your development environment
Make sure you have a development environment of Discourse running on your computer. I recommend you use this setup guide and come back when you’re done.
plugin.rb
When Discourse starts up, it looks in the plugins directory for subdirectories containing a plugin.rb file. The plugin.rb file has t…