I would like to create a Oocss.Module view which encapsulates boilerplate markup which is part of stubornella's Object Oriented CSS (https://github.com/stubbornella/oocss/wiki). The boilerplate markup looks like this:
<div class="mod">
<b class="top"><b class="tl"></b><b class="tr"></b></b>
<div class="inner">
<div class="hd">...</div>
<div class="bd">...</div>
<div class="ft">...</div>
</div>
<b class="bottom"><b class="bl"></b><b class="br"></b></b>
</div>
As you see, there are three placeholder regions: div.hd
, div.bd
and div.ft
. I was thinking multiple {{yield}} statements could make it easy to populate those placeholders.
But it's kinda ignoring the ideal scenario, imo, which would be something like: