On 2012-04-23 20:08, Rene wrote:
On 2012-04-23 18:25, Cunningham, Robert wrote:
I'm evaluating Trac vs. Fossil for use within our small engineering
[snip]
FWIW, while searching for other implementations of similar
capabilities I stumbled across Wiky
(http://goessner.net/articles/wiky/ [2]), which could permit such a
feature to be implemented using only client-side code. (Not that
that's an issue for Fossil, where the entire local UI server is
"client side"!)

TIA,

-BobC



Links:
------
[1] http://trac.edgewall.org/wiki/TracWiki
[2] http://goessner.net/articles/wiky/
The wiky thing will not render the same as fossil. probably confusing
your non-technical persons even more!

maybe a webpage wiki_preview could be added which is in essence a
call to wiki_convert.
Then with a bit of ajax you can sent the buffer to the server and get
the wiki stuff back.
The ajax thing could be small enough to fit in the header.

The short answer is it is not in fossil.

I just tested my idea
add to wiki.c

/*
** WEBPAGE: wikipreview
** URL: /wikipreview
*/
void wikipreview_page(void){
  Blob wiki;
  char *zBody = (char*)P("w");

  if( zBody ){
    zBody = mprintf("%s", zBody);
  }
  login_check_credentials(); /* are those really needed */
  if( zBody==0 ){
    zBody = mprintf("<i>Empty Page</i>");
  }
  blob_zero(&wiki);
  blob_append(&wiki, zBody, -1);
  wiki_convert(&wiki, 0, 0);
  blob_reset(&wiki);
}

compile run fossil ui and do something like
curl --data 'w=
  *  hello
  *  world

Now is the time for all good man ...
' http://localhost:8080/wikipreview
response is
<ul><li>hello
</li><li>world</li></ul>

<p>Now is the time for all good man ...
</p>

with this inplace you can build your side by side editing.
--
Rene
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to