Hi, In a previous mail I told how our last semester explorations in
the local community building, deploying and teaching Brea[1][2],
a Pharo powered tool between a Static Site Generator and a
headless CMS, led me towards TiddlyWiki[3] as the more dynamic
counterpart of such deployments and today we a a little chat[4]
with Norbert about trying to avoid the over complication of NodeJS
and replacing that with a pretty simple Pharo based counterpart. [1] https://mutabit.com/repos.fossil/indieweb/ I would like to start with something like tw5-server.rb [5],
which is a pretty small Ruby script (46 lines) based in the
Webrick and fileutils libraries, using the Pharo counterparts
(Zinc? Teapot?). I don't have experience in Ruby, but maybe
something in the list can help. It seems that the script opens a
folder in the local file system and serves the files there. One of
them is a TiddlyWiki file and once it is served (at port 8000) the
class DefaultFileHandler
(lines 18 to 35) takes care of saving the file and sucesive
copies of it. Particularly lines 25 and 26 create a backup of
the body in the current file and updates the Tiddly file body
with new versions as saving is done in the web user interface.
But further details scape me, particularly how the server
knows that the TiddlyWiki file is being save. Any corrections on my understanding so far, hints or pointers on how to get something similar with Pharo would be greatly appreciated. Cheers, Offray |
I plan to have a look at it and implement a backend in pharo for tiddlywiki but time is really sparse right now. So I get back to you when I have something. And a way to improve the usage of markdown in the tiddlers would also be something good.
Norbert
|
I'm now using the Markdown plugin recommended by Nicolas[1],
instead of the GFM plugin as It works better and supports
transclusion. It's based on Remarkable so I think that it would be
able to support no only transclusion but macros, so we could have
the best of both worlds (now I'm mixing TiddlyWikis native
WikiText syntax for macros and advanced features and using
Markdown plugin for "legacy" content coming in this format). Offray On 27/01/21 4:44 a. m., Norbert Hartl
wrote:
I plan to have a look at it and implement a backend in pharo for tiddlywiki but time is really sparse right now. So I get back to you when I have something. And a way to improve the usage of markdown in the tiddlers would also be something good. |
Free forum by Nabble | Edit this page |