-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IDEA] Template based generation tool in cli #8548
Comments
Hi @linonetwo this sounds intriguing. I understand part of the idea is to provide tiddlywiki commands for creating tiddlers according to a template. Would you imagine that being a file system operation, or would it create the tiddler via the usual API and rely on the sync process to write it to disc? |
I usually have my own folder structure, and I will want templates to be generated in the location I want, so it might works like And it might fetch tiddlers from the internet (tiddlyhost or github pages). People can share a shell command like |
Hi @linonetwo OK that makes sense. Maybe this is the time that we should start using npm scoped packages, publishing these tools as |
I would like to raise my concerns. We already do have the We do have I doubt that So adding a new command that mixes functionality from the afore mentioned ones IMO is not the right thing to do. We should have a look, if a combination from |
@pmario I didn't know that. If the complete command is too long, we can provide a button to generate it and copy to clipboard. I imagine when people provide template on their own blog wiki (or a private wiki on tiddlyhost that password is bought on Patron), they will also provide this button. So there don't need to be another npm package. (While we could still move https://github.com/tiddly-gittly/Modern.TiddlyDev from |
We could also look at extending the current
The name
We should start a separate discussion about this, I think it would be an excellent idea. We should take the opportunity to automate the main npm build as well (I currently run the build on my machine). |
Is your feature request related to a problem? Please describe.
https://tiddly-gittly.github.io/Modern.TiddlyDev/ provides a cli tool to bootstrap a project boilerplate.
After seeing https://talk.tiddlywiki.org/t/10475 I think there can also be tiddlers-level template.
Describe the solution you'd like
For example, I shouldn't add doc like #8472 , but instead I create a tiddler with tag
$:/tags/GenerationTemplate
, and necessary metadata.If we are not going to add them to the official doc wiki, it can also be added to a new edition.
And tiddlywiki npm package can prepack / download / request the wiki, list & search the template user wants, and apply it to a folder, when developing plugin in nodejs wiki.
Describe alternatives you've considered
There is already a plugin https://github.com/tiddly-gittly/template-list that can read template tiddler from plugins, and apply them. But it only support single tiddler currently, while sometimes a feature will need multiple tiddlers to work.
Additional context
There is Notion template market, and many Obsidian users share their vault via github. But we can do more than that in TiddlyWiki. I've heard there will be a template market after MWS is finished, so maybe this can be implemented after that.
The text was updated successfully, but these errors were encountered: