Render Command in TiddlyWiki with Node.JS: Create a Plugin.tid

My tiddywiki,info file looks like below

{
	"description": "Basic client-server edition",
	"plugins": [
		"tiddlywiki/tiddlyweb",
		"tiddlywiki/filesystem",
		"tiddlywiki/highlight"
	],
	"themes": [
		"tiddlywiki/vanilla",
		"tiddlywiki/snowwhite"
	],
	"build": {
		"index": [
			"--render","$:/plugins/tiddlywiki/tiddlyweb/save/offline","index.html","text/plain"],
		"static": [
			"--render","$:/core/templates/static.template.html","static.html","text/plain",
			"--render","$:/core/templates/alltiddlers.template.html","alltiddlers.html","text/plain",
			"--render","[!is[system]]","[encodeuricomponent[]addprefix[static/]addsuffix[.html]]","text/plain","$:/core/templates/static.tiddler.html",
			"--render","$:/core/templates/static.template.css","static/static.css","text/plain"]
	}
}

I am developing a simple plugin called $:/plugins/atronoush/myplugin.
How call the render command to create myplugin.tid alongside with index.html

e.g.

"--render","$:/plugins/tiddlywiki/tiddlyweb/save/offline","index.html","text/plain",
"--render","???","myplugin.tid","text/plain"],
1 Like

Interesting idea, I have tried bundle plugin in this way. And I even created a github template repo.

But later I found it is much easier to dev using modern.tiddlydev framework, so I abandon my template. GitHub - tiddly-gittly/Tiddlywiki-WikiText-Plugin-Template: Simple plugin template, with Github Pages demo site.

2 Likes

Thank you! This works nice.