=== Top of the Swiki === Attachments ===
Rendering
You can render the Swiki to plain HTML. Check help (?) above for more information. The rendered version is placed in the 'rendered' directory of the swiki unless otherwise specified in the settings.
Some people want to know how one might implement something in Comanche Swiki. So, here is a list of things Je77 did to implement rendering:
Web Interface
- 'render.book' template (template for starting rendering)
- 'renderfailed.book' template (template for a failed render attempt)
- 'rendersuccess.book' template (template after a successful render)
- 'torender.book' action (URL for the render interface)
- 'settings.xml' add 'renderPassword' (need password to render)
- 'render.book' address (direct to the templates above)
- SwikiRequest isRender (decide which template to render)
- SwikiRequest renderPassword (decide which template to render)
Rendering the Swiki
- 'render.book' address (start the rendering)
- 'settings.xml' add 'renderPath' (directory to render into)
- SwikiBook renderPages: renderBlock toFileNamed: nameBlock (render all pages)
- SwikiBook copyUploadsToRendered (copy uploaded files to the rendered swiki)
Processing the Page
- 'render.page' template (template for rendered page)
- 'rendertext.page' action (rendered text of the page)
- NuSwikiPage renderFormatFor: request (similar to showFormatFor: request)
- LineFormatter class renderFormatter (formatter for the text)
- PageFormatter addRenderInternalLinks ('*' to '*' for render text)
- PageFormatter addRenderUploadLinks('*+' to '+*' for render text)
- 'settings.xml' add 'renderFormatter' (LineFormatter renderFormatter)