Fancy Showoff with Templates
Martin Grund
November 2011
z, ? | toggle help (this) |
space, → | next slide |
shift-space, ← | previous slide |
d | toggle debug mode |
## <ret> | go to slide # |
c, t | table of contents (vi) |
f | toggle footer |
r | reload slides |
n | toggle notes |
p | run preshow |
Martin Grund
November 2011
!SLIDE[tpl=special]
Default templates are used if no additional parameter is supplied,
templates are configured in the showoff.json
. All paths are relative.
{
"templates" : {
"special" : "mytpl.tpl"
}
/* ... */
}
Content markers can be replaced by special values identified by a triple ~
:
NUM_SLIDES
- total number of slidesCURRENT_SLIDE
- current slide numberCONFIG:*
- any configuration value from showoff.json
<div class="hpitemplate">
<div class="redbarhor"><br /></div>
<div class="redbarvert"><br /></div>
<div class="yelbarhor"><br /></div>
<div class="yelbarvert"><br /></div>
</div>
<div class="title">
~~~CONTENT~~~
</div>
<div class="hpidefault">
~~~CONTENT~~~
</div>
<div class="lefter">
<div class="redbarhor"><br /></div>
<div class="redbarvert"><br /></div>
<div class="yelbarhor"><br /></div>
<div class="yelbarvert"><br /></div>
<div class="pages">
~~CURRENT_SLIDE~~~ / ~~NUM_SLIDES~~~
</div>
</div>
Replacement marker is a tripple ~
, the previous slides used a double ~
to avoid replacement...