Hi Cade

The render command outputs one file for each tiddler. In this case, the 
files are all called "ChangeLog.json", so they overwrite one another.

The fix is to use a filter expression for the output filename, and generate 
a filename from the title:

tiddlywiki "Data Mart User Manual" --render "[field:change.from[7.0SU2 
(7.0.Local)]][field:change.to[9.0 (9.0.Local)]]" 
"[encodeuricomponent[]addsuffix[.json]]" text/plain 
"$:/core/templates/json-tiddler"

Best wishes

Jeremy

On Tuesday, November 9, 2021 at 5:31:41 PM UTC Cade Roux wrote:

> I am sending a filter to --render but it is only putting one tiddler in 
> the json file.
>
> Current command line:
>
> tiddlywiki "Data Mart User Manual" --render "[field:change.from[7.0SU2 
> (7.0.Local)]][field:change.to[9.0 (9.0.Local)]]" ChangeLog.json 
> text/plain "$:/core/templates/json-tiddler"
>
> Thanks,
>
> Cade
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8409787f-2e36-490b-b4be-d5034a339bb0n%40googlegroups.com.

Reply via email to