Wiki syntax -Textile- available now in JPublish
In my recent blog entry I was contemplating adding Wiki support to JPublish. It is available now :)
I decided to add Textile support through JTextile. This is possible now very easy due to the improved support of the new JPublish Component API which I plan to improve even more. RADEOX implementation will follow.
I can say that I am already addicted to this new feature, especially that you can create your pages with smart editors, such as: TextMate, who already understands the Textile syntax and the bundle supplied with TextMate is very valuable.
Let's see how easy is to use the Textile support in JPublish.
1. download and build our latest JPublish version from our new SVN repository.
2. if you want to go straight to the demo app, check the folder components/jptextile from your JPublish folder and build the jptextile web application (ant dist), deploy the distribution into your preferred Servlet container and start playing with Textile, skip the rest.
3. in your jpublish.xml configuration file from an existing application, add the following:
<component-manager>
<components>
<component id="jpTextile" classname="ca.flop.jpublish.wiki.JPTextileComponent">
<repository name="fs_repository"/>
</component>
</components>
</component-manager>
4. use Textile syntax in any page you need, through this simple component support: $components.jpTextile.renderText("h1. Hi!"), if you want to transform a string containing Textile sytax, or include and transform an external file containing a larger text: $components.jpTextile.renderPath("text.textile") , where the "text.textile" is a text file from your JPublish repository you mentioned in the jpublish.xml file; fs_repository, respectively.
I hope you'll find this support handy, and if yes, please send us your feedback to our user-group list.
Cheers,
-florin
