Canvas ColdFusion Wiki

Today the 13th (and final -sigh-) Macromedia DRK was released. My final DRK application, Canvas, is one of two ColdFusion applications featured on the DRK. Canvas is a Wiki application built using the Model-Glue framework.

What I like best about it is how extensible it is. So for example, all formatting and token replacement rules are either CFC methods or CFCs. So for example, to support bold text, this is all that I needed to write:

<cffunction name="render_bold" output="false" returnType="string" priority="1" hint="Use plus signs for bold. Example: +Foo+"> <cfargument name="string" type="string" required="true"> <cfargument name="webpath" type="string" required="true">

&lt;cfset arguments.string = reReplace(arguments.string,"\+(.*?)\+", "&lt;b&gt;\1&lt;/b&gt;", "all")&gt;
&lt;cfreturn arguments.string&gt;	 &lt;/cffunction&gt; </code>

The hint from the method is used to automatically generate editing instructions for the user. More information can be found at the project page:

I hope to have a demo set up soon.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA