mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 18:59:42 +00:00
aa4aeb187c
* fix: functions should use variables set by filter runs * refactor: code clean up * chore: added more tests
20 lines
371 B
Plaintext
20 lines
371 B
Plaintext
title: Functions/FunctionFilterrunVariables2
|
|
description: Functions in filter runs that set variables
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Apple
|
|
cost: 5
|
|
|
|
+
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
\function .doublecost() [<currentTiddler>get[cost]multiply[2]]
|
|
|
|
<$text text={{{ [[Apple]] :map[.doublecost[]] }}}/>
|
|
|
|
+
|
|
title: ExpectedResult
|
|
|
|
10 |