Name: Versions FullName: SuikaWiki: cooperation with version control systems URI: IW:SuikaWiki:SuikaWiki { Name: wikiview/link-viewcvs FullName: LINK element referring ViewCVS page of the wiki page Format: $p->{href} .= $o->encode ($p->{page}||$o->{page}) . ($p->{suffix} || '.txt'); $r = qq({$attr}; } for my $attr (qw/title/) { $r .= qq( $attr="@{[$o->formatter('view')->replace($p->{$attr},$o)]}") if $p->{$attr}; } $r .= '>'; } { Name: wikiview/diff-between-previous FullName: Difference between previous version of this WikiPage Format: $r = qq(
);
	for (split /\n/, $o->escape ($o->database->traverse_diff ($o->{page}))) {
	  if (/^\+(.*)/) {
	    $r .= qq($1\n);
	  } elsif (/^\-(.*)/) {
	    $r .= qq($1\n);
	  } elsif (/^\=(.*)/) {
	    $r .= qq($1\n);
	  } else {
	    $r .= qq|??? $_\n|;
	  }
	}
	$r .= qq(
); } MODULE: SuikaWiki::View->definition ('diff')->properties ( {media => {type => 'text/html', charset => 1, expires => 120}, #xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, template => <"%res(name=>\\"Diff:WebPageTitle\\");"p,link_meta=>"%predefined-template(name=>links);"p); %section(level=>1,add_to_toc=>0,type=>body,title=>"%ns-short-page-name;",heading,content=>" %section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"%predefined-template(name=>navbar);\\"p); %section(level=>2,id=>\\"diff\\",title=>\\"Diff:Title\\",heading,content=>\\"

%res(name=>\\\\\\"Diff:Notice\\\\\\");

%diff-between-previous; \\"); %section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\"); %section(class=>tools,add_to_toc=>0,content=>\\\"%predefined-template(name=>navbar);\\"p); %section(id=>footer,add-to-toc=>0,content=>\\"%predefined-template(name=>footer);\\"); "); EOH my $l = SuikaWiki::View->template ('links'); $l .= <<'EOH'; %link-wiki(mode=>diff,rel=>history,class=>wiki-cmd,title=>"%res(name=>ViewDiffOfThisPageLink,safe);"p); EOH my $cvsuri = SuikaWiki::Plugin->uri ('cvs_repository'); $l .= <"$cvsuri",rel=>history,class=>wiki-cmd,title=>"%res(name=>ViewHistoryOfThisPageLink);",hreflang=>en); EOH POD:LICENSE: Copyright 2003 Wakaba %%GNUGPL2%%