Exporting several tiddlers to a JSON file using --rendertiddler - looking for more documentation

47 views
Skip to first unread message

Cade Roux

unread,
Feb 20, 2020, 6:32:29 PM2/20/20
to TiddlyWiki
I'm looking for any more examples or exposition of the --render, --rendertiddler, and --rendertiddlers commands.

What I am doing is exporting a set of tiddlers from a tiddlywiki into a single JSON file to be processed by a program/script.

This is my current command in PowerShell with appropriate escaping and it works fine:

& tiddlywiki --% TestsVerified --verbose --rendertiddler "$:/core/templates/exporters/JsonFile" TestsVerified.json text/plain "" exportFilter "[regexp:title[^(XmlOutput|TestVerified):.*]]"

But I don't understand which parameter that "" is supposed to be a placeholder for:

--rendertiddler <title> <filename> [<type>] [<template>] [<name>] [<value>]

is what the documentation has with the example:

--rendertiddler "$:/core/templates/exporters/JsonFile" output.json text/plain "" exportFilter "[tag[done]]"

and the documentation also says that --render can replace the other two commands, but I'm not sure what would be equivalent.

Any pointers to more docs on this would be appreciated.
Reply all
Reply to author
Forward
0 new messages