-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Christophe David wrote: >>> ImportText is looking very good. My only request is (if its not there >>> already) >>> to put in some hooks to call user-supplied routines to wiki-convert the file >>> contents. > > I am not sure I understand the advantage of having a hook in PmWiki for this. > > If some conversion has to be made, why not do it beforehand and place > its output in the import directory ? > > If the conversion is done when PmWIki does the import, it ends up > taking longer for the visitor who happens to have triggered it, > without any other benefit apparent to me.
Well, in my particular case its because I have some pages that I want to migrate from an old site to PmWiki. The easiest workflow for me would be to have a directory I could just upload the old .html files to, and have them autoconverted for me. The plan would have me immediately trigger the conversion after the upload, and it would thus be a one-time delay even if some user manages to trigger the event first. I was looking at what it would take to do that, and it seemed that 90% of the needed code was already in ImportText, but not in an easily re-usable form. Hence my request. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGXHfu5dZZEoPlyIURAlnUAJ0dSde4d2xID3wQ5RT/zDkrVZJv3gCaAyAT q3rb5i+hGnNKSR67ZiUxUII= =/0a6 -----END PGP SIGNATURE----- _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users