mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-10 22:39:43 +00:00
![Jeremy Ruston](/assets/img/avatar_default.png)
* Restore comma before skinny tiddlers Fixes #7896 * Fix problem that showed up in CI tests
35 lines
1.7 KiB
Plaintext
35 lines
1.7 KiB
Plaintext
title: $:/core/templates/store.area.template.html
|
|
|
|
\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">[`
|
|
<$let newline={{{ [charcode[10]] }}} join=`,$(newline)$`>
|
|
<$text text=<<newline>>/>
|
|
<$list filter=<<saveTiddlerFilter>> join=<<join>> template="$:/core/templates/html-json-tiddler"/>
|
|
<$list filter="[subfilter<skinnySaveTiddlerFilter>]" template="$:/core/templates/html-json-skinny-tiddler"/>
|
|
<$text text=<<newline>>/>
|
|
</$let>
|
|
`]</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;">`
|
|
<$list filter={{{ [<saveTiddlerFilter>] }}} template="$:/core/templates/html-div-tiddler"/>
|
|
<$list filter="[subfilter<skinnySaveTiddlerFilter>]" template="$:/core/templates/html-div-skinny-tiddler"/>
|
|
`</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> |