Hi,

I've used together Jon's TiddlyTemplating plugins and Saq's WebDavLib,
in order to admin an html page using tiddlywiki.

You can see proof of concept video here:
http://www.mekensleep.com/new/mksp-tiddlywiki-admin.ogv

Please note that I had to patch TiddlyTemplatingMacro.js in order to
publish to file using DAV.put if present:

changeset:   44:cdafb6d3ad04
user:        Johan Euphrosine <[email protected]>
date:        Fri Oct 09 19:43:21 2009 +0200
files:       admin/TiddlyTemplatingMacro.js
description:
enable webdav saving if present in TiddlyTemplatingMacro


diff -r b5fedfa00378 -r cdafb6d3ad04 admin/TiddlyTemplatingMacro.js
--- a/admin/TiddlyTemplatingMacro.js    Fri Oct 09 19:42:52 2009 +0200
+++ b/admin/TiddlyTemplatingMacro.js    Fri Oct 09 19:43:21 2009 +0200
@@ -88,7 +88,11 @@
        if(window.location.protocol === 'file:') {
                this.saveToFile(filename,content);
        } else {
-               this.saveToWindow(filename,content);
+               if (DAV !== undefined) {
+                   DAV.put(filename,function() { displayMessage("saved " + 
filename, filename); },undefined,convertUnicodeToUTF8(content));
+               } else {
+                   this.saveToWindow(filename,content);
+               }
        }
 };

You can get the sources using mercurial:
hg clone http://bitbucket.org/proppy/wwwmekensleepcom/

Comments are welcome :)

-- 
Johan Euphrosine <[email protected]>
Development and services around Free Software
http://aminche.com/

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to