Fresh to a CPAN mirror near you: CGI::Wiki 0.52 and CGI::Wiki::Kwiki 0.50.
CGI::Wiki's list_recent_changes method now accepts the parameters 'include_all_changes' (if a node has been changed more than once, return it more than once) and 'between_days' (return all changes between 1 and 2 days ago, for example).
CGI::Wiki::Kwiki now takes advantage of this to show changes up to 30 days ago, categorised nicely as 'last 24 hours', 'last week', 'last fortnight', 'last 30 days'. See for example http://london-crafts.org/?node=RecentChanges
Kake
On Thursday 10 June 2004 02:34 pm, Kate L Pugh wrote:
Fresh to a CPAN mirror near you: CGI::Wiki 0.52 and CGI::Wiki::Kwiki 0.50.
CGI::Wiki's list_recent_changes method now accepts the parameters 'include_all_changes' (if a node has been changed more than once, return it more than once) and 'between_days' (return all changes between 1 and 2 days ago, for example).
CGI::Wiki::Kwiki now takes advantage of this to show changes up to 30 days ago, categorised nicely as 'last 24 hours', 'last week', 'last fortnight', 'last 30 days'. See for example http://london-crafts.org/?node=RecentChanges
Darn you and your moving target. How am I ever supposed to write a CGI::Wiki::Kwiki clone in XSLT if you raise the bar like this?
-Chris
On Thu 10 Jun 2004, Chris Prather chris@prather.org wrote:
Darn you and your moving target. How am I ever supposed to write a CGI::Wiki::Kwiki clone in XSLT if you raise the bar like this?
I'm not sure whether to take this seriously or not :)
More improvements: 0.51 just released:
2004/06/12 - (0.51) Template tweaks to add more stylesheet hooks. Added 'show_all_nodes' action to dump out contents of all nodes (requested by Bob Walker); access it via link on 'All Pages'.
Kake
On Saturday 12 June 2004 08:04 am, Kate L Pugh wrote:
On Thu 10 Jun 2004, Chris Prather chris@prather.org wrote:
Darn you and your moving target. How am I ever supposed to write a CGI::Wiki::Kwiki clone in XSLT if you raise the bar like this?
I'm not sure whether to take this seriously or not :)
Well I'm only "half" serious. Look at http://orlando.pm.org ... it's got alot of bugs, and some of the features don't work ... but I did use CGI::Wiki::Kwiki as my reference implimentation. And I need to add in a copyright notice for alot of the code I liberated from CGI::Wiki::Kwiki so y'all keep your copyrights.
It makes calls to CGI::Wiki to get the Hash of the nodes, then takes that and passes it to XML::Generator::PerlData and LibXML::DOM::Generator ( i think) to turn it into an LibXML DOM which is then passed out to some LibXSLT stylesheets. And soon to be fed into the AxKit output stream. The whole shebang is organized by SAWA which is a web application toolkit (http://www.sf.net/projects/sawa).
It's all very slick, and I plan on supporting a transform for RDF, as well as transform to other XML Dialects in the future. Mostly it's a matter of replacing the TT display logic with XSLT, not very hard at all. Ultimately I would like to run the same treatment over OpenGuides.
If you'd like to inspect the code, lemme know. I haven't published it anywhere because it's not finished yet.
-Chris
On Sat 12 Jun 2004, Chris Prather chris@prather.org wrote:
Look at http://orlando.pm.org ... it's got alot of bugs, and some of the features don't work ... but I did use CGI::Wiki::Kwiki as my reference implimentation. And I need to add in a copyright notice for alot of the code I liberated from CGI::Wiki::Kwiki so y'all keep your copyrights.
Could we roll it into the CGI::Wiki::Kwiki distro, or make them have a common parent class or something, to avoid duplicating code?
If you'd like to inspect the code, lemme know.
Yes please! I expect there may be other people on the list interested too.
Kake
On Saturday 12 June 2004 11:40 am, Kate L Pugh wrote:
On Sat 12 Jun 2004, Chris Prather chris@prather.org wrote:
Look at http://orlando.pm.org ... it's got alot of bugs, and some of the features don't work ... but I did use CGI::Wiki::Kwiki as my reference implimentation. And I need to add in a copyright notice for alot of the code I liberated from CGI::Wiki::Kwiki so y'all keep your copyrights.
Could we roll it into the CGI::Wiki::Kwiki distro, or make them have a common parent class or something, to avoid duplicating code?
Well I was gonna save a special tuit for a SAWA::Output::TT class so I could just give you the CGI::Wiki::Kwiki as a SAWA package and it would be 100% compatible with your current setup.
SAWA required me already to abstract most of that code into a context class. This class works roughly as the model in a MVC architecture, all the business logic is stored there. It shouldn't be hard to either abstract that again into a class that's easily used by CGI::Wiki::Kwiki ... thinking about it it's something I need to do for the above anyway.
If you'd like to inspect the code, lemme know.
Yes please! I expect there may be other people on the list interested too.
I'll clean it up a bit, abstract it out (see above) and put it somewhere where you can get to it then.
-Chris