Hi Chris I've been looking at the tiddlyweb adaptor code used within tw5: > > https://github.com/Jermolene/TiddlyWiki5/blob/master/ > plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js > > I'm trying to determine how it needs to change to work with the > "comps" concept I'm developing in tank[1]. I've made it work for > tiddlywiki classic and would now like to make it work with tw5. >
Looks great, and the approach with lazy loading seems in line with that of TW5. >From reviewing the above code it looks like it relies upon /status > providing a recipe value, which means that the current code will only > work with tiddlyspace, but not a plain tiddlyweb server. This is > because status only provides recipe information a situation where the > HTTP_HOST identifies a space, which then identifies a recipe. > > In a plain tiddlyweb situation the recipe (or bag) needs to be parsed > out of the location.pathname or be provided in bootstrapping code. A > request to /status simply can't know. > Aha, that all makes sense. I just did the /status stuff by sniffing existing code. > So my main question is how to make that happen? I've been thinking about this for a while. To keep the client code nice and dumb, how about if it PUT/POST tiddlers to the wiki URL? And then got back a canonical URL which it would use thereafter. Then the client wouldn't need to parse URLs at all, and the semantics seem not bad: the URL is the location of a wiki, and we're trying to add something to the wiki. > I can probably figure > out how to make the necessary changes to the code, but I'm not certain > about the build process. Is there a guide? > The readme in the tw5 repo is intended to give that information, so feedback appreciated if it doesn't. Basically, download the repo, mkdir jermolene.github.com parallel to the repo, cd into the repo and run bld.sh - actually, the abbreviated qbld.sh should be fine for you. There also appears to be a bit of confusion about keeping track of the > bag and recipe on individual tiddlers as a way of knowing where to > save the tiddler. > Yes, I think there is indeed some confusion. Glad this is all moving, and looking forward to getting things a bit smoother, Best wishes Jeremy > > [1] https://groups.google.com/forum/#!topic/tiddlyweb/lCPFLO9zSKY > > -- > Chris Dent http://burningchrome.com/ > [...] > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywikidev. > For more options, visit https://groups.google.com/groups/opt_out. > -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/groups/opt_out.
