Custom filetype handling?


(Santiago Tabares) #1

Hi. I would like to support the display of a certain filetype in my discourse installation.

Basically what I need is:

When the filetype is .sgf
Load 2 javascript files and a css stylesheet
Replace the download button with a bit of HTML or js.

I don’t think this can be done without writing a plugin, can it?
If you’re curious I’d like to embed a go board for sgf files using this player:

http://wgo.waltheri.net/player