mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-03 22:26:43 +00:00
Replace accumulate-palette-entries with new changecount filter
Much more direct and efficient
This commit is contained in:
@@ -1,40 +0,0 @@
|
||||
|
||||
title: Operators/Palettes/Accumulate
|
||||
description: Recursively accumulate palette definitions
|
||||
type: text/vnd.tiddlywiki-multiple
|
||||
tags: [[$:/tags/wiki-test-spec]]
|
||||
|
||||
title: Output
|
||||
|
||||
\import [subfilter{$:/core/config/GlobalImportFilter}]
|
||||
\parsermode inline
|
||||
<$text text={{{ [accumulate-palette-entries[MyPalette]] }}}/>
|
||||
+
|
||||
title: $:/palette
|
||||
|
||||
MyPalette
|
||||
+
|
||||
title: MyPalette
|
||||
name: My Palette
|
||||
description: My custom palette
|
||||
tags: $:/tags/Palette
|
||||
type: application/x-tiddler-dictionary
|
||||
palette-import: MyOtherPalette
|
||||
color-scheme: light
|
||||
|
||||
page-background: <<colour custom>>
|
||||
custom: #f4e4d4
|
||||
+
|
||||
title: MyOtherPalette
|
||||
name: My Other Palette
|
||||
description: My other custom palette
|
||||
tags: $:/tags/Palette
|
||||
type: application/x-tiddler-dictionary
|
||||
color-scheme: light
|
||||
|
||||
page-background: #d4e4f4
|
||||
background: red
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
["page-background:#d4e4f4","background:red","page-background:<<colour custom>>","custom:#f4e4d4"]{"title":"MyPalette","name":"My Palette","description":"My custom palette","tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","palette-import":"MyOtherPalette","color-scheme":"light","text":"page-background: <<colour custom>>\ncustom: #f4e4d4"}
|
||||
Reference in New Issue
Block a user