Lukasz, If static tiddlers are enough, for your exported content, I suggest researching existing methods. Within such static tiddlers, there is a lot of room to play.
However if you want to craft other html standard pages I suggest you look into the export process to start with. If you go to output a static tiddler in uses a template to construct the HTML page. You could make your own templates for generating html pages, I would still base it on a tiddler, so you can automate tiddler generation that is subsequently used for page generation, but you can make the exported result drastically different if you want. Tiddlywiki is a great platform to use as a Site Generator, software development kit, code editor and a lot more for designers. Learning how to research how to do something, by learning how to follow, how tiddlywiki already does something similar, is a learning investment in the future. but then feel free to ask here, as your questions become more specific. Regards Tones On Saturday, 22 August 2020 07:58:21 UTC+10, grouchysmurf wrote: > > Cheers, fellow Tiddlywikers (does such a word even exist?). > > I spent last few days on reading about TW and exploring its abilities, all > that interrupted by frequent gasps of astonishment. TW presumably is what > I've been looking for but, on the other hand, it may be just slightly too > much to make most of it--therefore my post here. > > What I am looking, in fact, is a static site generator. I know TW is > capable of generating static html files and I even managed to generate one > or two such files. Even more--I dabbled with files and managed to adjust it > to my liking. > > My goal is to generate many static html files, which could then be > seasoned with a class-less CSS. HTML needs to simple, html -> body -> some > lists, maybe few paragraphs. There will be like tens or hundreds of such > files, each file would represent a single entity of a specific object. > While these objects are not directly associated to each other, they share > the underlying model and taxonomy. I would also need to generate aggregates > i.e. lists displaying all entities meeting certain criterias. > > Say, a database of cars, and I would like then to view all cars of > selected make or all cars with diesel engine. > > I could store all the data in CSV file and make a simple bash script to > generate static files. I made so many times in the past and while it works, > the downside is that after a while I forget how one uses the toolchain I > came up with so tend to recreate it from the scratch. As fun as it is, with > years passing by and myself getting older, I have now no time for such > pasttimes. I am looking for a solution that would allow me to extend the > database, regenerate the output without to much entry barrier after a month > or two. > > Now, TW seems to be a perfect tool for that. It allows for creating > flexible taxonomies and data models (either through tags or fields); use of > list widget is only limited by one's creativity and imagination. > > On the other hand--it offers so much more and is so complex, I didn't > fully manage to create a html template that would output JUST a doctype, h1 > element followed by wikified text of a tiddler. For some reason, right > after body element there is a dangling p element that can't find a way to > remove. I spent whole today's evening to have TW generate the output as I > wanted to have--to no avail. > > After this long-winded introduction, two questions: > > 1. am I looking at the right tool here? Or you'd rather recommend > something less robust and powerful, from the lack of better terms? I don't > care about all JS UI features TW offers so maybe I am stripping away too > much of the features to make the effort worthwhile. > > 2. would someone mind providing me a tip or two as to how one creates a > bare-bone html output of a tiddler? I followed some of the guides, in > particular guide related to generating static output in which the author > also provides a meaningful insight as to how tinker with ViewTemplate to > adjust it for one's need. I followed it but, as I said, the results, while > close, are not perfect. > > Apologies for lack of brevity. > > Most kind regards, > Lukasz > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5adcb42f-d813-4c21-ba6b-cbfd924c7e9do%40googlegroups.com.

