From: <tri...@us...> - 2007-10-22 15:02:56
|
Revision: 36 http://staticwiki.svn.sourceforge.net/staticwiki/?rev=36&view=rev Author: triathlon98 Date: 2007-10-22 08:02:53 -0700 (Mon, 22 Oct 2007) Log Message: ----------- more documentation Modified Paths: -------------- trunk/src/site/wiki/usage.wiki Modified: trunk/src/site/wiki/usage.wiki =================================================================== --- trunk/src/site/wiki/usage.wiki 2007-10-22 15:01:46 UTC (rev 35) +++ trunk/src/site/wiki/usage.wiki 2007-10-22 15:02:53 UTC (rev 36) @@ -46,7 +46,7 @@ Of course the staticwiki renderer can also be used in code. The easiest way to to use the default markup. In that case, the following code can be used. {code} WikiRenderer wikiRenderer = WikiFactory.getWikiRenderer( new AllowAllResourceHandler() ); - wikiRenderer.render( wikiText ); + String res = wikiRenderer.render( wikiText ); {code} In many cases, it is important to change how links and resources are handled. In that case you should get the wiki renderer with a proper {code}ResourceHandler{code} implementation. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |