How to export plugin tiddler as .tid from command line?

56 views
Skip to first unread message

bimlas

unread,
Sep 5, 2018, 4:37:50 AM9/5/18
to TiddlyWiki
I would like to automate the building of the .tid and .html files of my plugin. Building the HTML works, but I cannot find a way to export the plugin as TID file.


What I tried (from the root directory of the repo):

$ export TIDDLYWIKI_PLUGIN_PATH=plugins
$ tiddlywiki editions
/asciidoctordemo --render '$:/plugins/bimlas/asciidoctor'  asciidoctor.tid 'text/plain'
$ tiddlywiki editions
/asciidoctordemo --save '$:/plugins/bimlas/asciidoctor' asciidoctor.tid
$ tiddlywiki editions
/asciidoctordemo --savetiddler '$:/plugins/bimlas/asciidoctor' asciidoctor.tid

All of them generating JSON withouth the necessary fields (title: $:/plugins/bimlas/asciidoctor, plugin-type: plugin, etc.).

Is it possible to "bundle" my plugin from command line (it works from the export menu of the tiddler in the HTML version)?

Jeremy Ruston

unread,
Sep 5, 2018, 5:02:00 AM9/5/18
to tiddl...@googlegroups.com
Hi Bimlas

Try this:

tiddlywiki editions/asciidoctordemo --render "$:/plugins/bimlas/asciidoctor" asciidoctor.tid text/plain "$:/core/templates/tid-tiddler" 

I'd recommend using JSON to distribute the plugin:

tiddlywiki editions/asciidoctordemo --render "$:/plugins/bimlas/asciidoctor" asciidoctor.json text/plain "$:/core/templates/json-tiddler" 

I prefer JSON because it avoids the limitations of the .tid file format (such as the restriction to single line fields), and is more robust because the parser will detect many corruptions.

Best wishes

Jeremy.



--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/926e70f0-8599-4907-a598-926657689cca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bimlas

unread,
Sep 5, 2018, 5:09:22 AM9/5/18
to TiddlyWiki
I'd recommend using JSON to distribute the plugin:

tiddlywiki editions/asciidoctordemo --render "$:/plugins/bimlas/asciidoctor" asciidoctor.json text/plain "$:/core/templates/json-tiddler" 

I prefer JSON because it avoids the limitations of the .tid file format (such as the restriction to single line fields), and is more robust because the parser will detect many corruptions.

Thank you very much! *kowtowing* This is exactly what I wanted to do originally, but JSON did not worked for me - I didn't knew about the template parameter.
Reply all
Reply to author
Forward
0 new messages