2013-01-31 10:20:13 +00:00
|
|
|
title: $:/core/templates/store.area.template.html
|
|
|
|
|
2021-07-14 08:15:30 +00:00
|
|
|
\whitespace trim
|
|
|
|
<!-- Unencrypted -->
|
|
|
|
<$list filter="[[$:/isEncrypted]get[text]else[no]match[no]]">
|
|
|
|
<$list filter="[[storeAreaFormat]is[variable]getvariable[]else[json]match[json]]">
|
|
|
|
<!-- New-style JSON store area, with an old-style store area for compatibility with v5.1.x tooling -->
|
|
|
|
`<script class="tiddlywiki-tiddler-store" type="application/json">[`
|
2023-11-25 09:35:05 +00:00
|
|
|
<$let newline={{{ [charcode[10]] }}} join=`,$(newline)$`>
|
2021-07-14 08:15:30 +00:00
|
|
|
<$text text=<<newline>>/>
|
2023-11-25 09:35:05 +00:00
|
|
|
<$list filter=<<saveTiddlerFilter>> join=<<join>> template="$:/core/templates/html-json-tiddler"/>
|
2023-12-21 10:36:29 +00:00
|
|
|
<$list filter="[subfilter<skinnySaveTiddlerFilter>]" template="$:/core/templates/html-json-skinny-tiddler"/>
|
2021-07-14 08:15:30 +00:00
|
|
|
<$text text=<<newline>>/>
|
2023-11-25 09:35:05 +00:00
|
|
|
</$let>
|
2021-07-14 08:15:30 +00:00
|
|
|
`]</script>`
|
|
|
|
`<div id="storeArea" style="display:none;">`
|
|
|
|
`</div>`
|
|
|
|
</$list>
|
|
|
|
<$list filter="[[storeAreaFormat]is[variable]getvariable[]else[json]match[div]]">
|
|
|
|
<!-- Old-style DIV/PRE-based store area -->
|
|
|
|
<$reveal type="nomatch" state="$:/isEncrypted" text="yes">
|
|
|
|
`<div id="storeArea" style="display:none;">`
|
2023-12-21 10:36:29 +00:00
|
|
|
<$list filter={{{ [<saveTiddlerFilter>] }}} template="$:/core/templates/html-div-tiddler"/>
|
|
|
|
<$list filter="[subfilter<skinnySaveTiddlerFilter>]" template="$:/core/templates/html-div-skinny-tiddler"/>
|
2021-07-14 08:15:30 +00:00
|
|
|
`</div>`
|
|
|
|
</$reveal>
|
|
|
|
</$list>
|
|
|
|
</$list>
|
|
|
|
<!-- Encrypted -->
|
|
|
|
<$list filter="[[$:/isEncrypted]get[text]else[no]match[yes]]">
|
|
|
|
`<!--~~ Encrypted tiddlers ~~-->`
|
|
|
|
`<pre id="encryptedStoreArea" type="text/plain" style="display:none;">`
|
|
|
|
<$encrypt filter=<<saveTiddlerFilter>>/>
|
|
|
|
`</pre>`
|
|
|
|
</$list>
|