I’m trying to wrap the
<div id="main-outlet" class="wrap"> into a custom markup, in order to have the following markup:
<div class="my-main-outlet"> <div class="my-main-outlet-before"></div> <div id="main-outlet" class="wrap"></div> <<<<<<<<<<<<<<<<< the existing element <div class="my-main-outlet-after"></div> </div>
What i’ve tried:
- A very basic plugin, connected to
above-footeroutlets. This leads to compiling error, because I can’t have unclosed tags;
- A js file that will generate the desired markup. This will add some markup, but the problem is that it will also wrap my markup into
Am i doing it wrong? There is another way that i didn’t think of?
Also, sligthly related: if i overwrite a Discourse template, I could reuse it as a partial?