1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-04 19:23:29 +00:00
TiddlyWiki5/core/templates/PageTemplate.tid
Jeremy Ruston 69a0c46447 Split the story macro out into two macros
Now the story macro manages the story element sequence, while the
navigator macro listens for the navigation events, and modifies the
story tiddler as required. Also introduces a history tiddler that
retains the history stack so that we can animate navigation properly
(as distinct from animating the addition and removal of story elements).

Note that the zoomin storyview isn't quite finished, but this is a
stable point to commit these changes.
2012-06-26 19:54:51 +01:00

48 lines
1.1 KiB
Plaintext

title: $:/templates/PageTemplate
<<navigator story:"$:/StoryTiddlers" history:"$:/History" ><
{{navigation-panel{
<<chooser><
<<list all>>
>>
}}}
<<zoomer>>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
{{nav{
* HelloThere
* [[Introduction]]
* [[Docs]]
*{{divider-vertical}}
{{btn btn-danger{
<<button popup:ViewDropDownState><View <span class="caret"></span>>>
}}}
}}}
<<linkcatcher store:[[$:/CurrentView]]><
<<reveal state:ViewDropDownState type:popup position:below><
<div class="open">
{{dropdown-menu tw-suppress-missing-tiddlylink{
* <<link to:classic>< <<hide tiddler:[[$:/CurrentView]] notequal:classic>< <span class="tw-ticked-menu-item"></span> >> Classic>>
* <<link to:sideways>< <<hide tiddler:[[$:/CurrentView]] notequal:sideways>< <span class="tw-ticked-menu-item"></span> >> Sideways>>
* <<link to:zoomin>< <<hide tiddler:[[$:/CurrentView]] notequal:zoomin>< <span class="tw-ticked-menu-item"></span> >> Zoomin>>
}}}
</div>
>>
>>
</div>
</div>
</div>
<div class="container">
<<story story:"$:/StoryTiddlers" history:"$:/History" storyviewTiddler:[[$:/CurrentView]] storyview:classic >>
</div>
>>