mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-15 14:24:51 +00:00
e344c38349
* In the interests of performance and expressiveness, switched to using a Sax parser instead of a DOM implementation. * Use extensible declarative rules to control the slicing process * Added new optional set of rules for slicing by heading, where the paragraphs underneath a heading are packed into the same tiddler as the heading * Added a modal dialogue for specifying parameters when slicing in the browser
29 lines
852 B
Plaintext
29 lines
852 B
Plaintext
title: $:/plugins/tiddlywiki/text-slicer/templates/interactive/tiddler
|
|
|
|
\define if(condition,then,else)
|
|
<$list filter="""$condition$ +[limit[1]]""" emptyMessage="""$else$""" variable="ignore">
|
|
$then$
|
|
</$list>
|
|
\end
|
|
|
|
\define include-component(type)
|
|
<<if "[{!!toc-type}prefix[$type$]]" """
|
|
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/interactive/$type$" mode="block"/>
|
|
""">>
|
|
\end
|
|
|
|
<$list filter="[<tv-show-toolbar>prefix[yes]]" variable="hasToolbar">
|
|
{{||$:/plugins/tiddlywiki/text-slicer/ui/tiddler/toolbar}}
|
|
</$list>
|
|
|
|
<<include-component "document">>
|
|
<<include-component "heading">>
|
|
<<include-component "paragraph">>
|
|
<<include-component "note">>
|
|
<<include-component "list">>
|
|
<<include-component "item">>
|
|
<<include-component "image">>
|
|
<<include-component "def-list">>
|
|
<<include-component "term">>
|
|
<<include-component "definition">>
|