Squeak Class Documentation category index | class index  
 
RenderingSwikiAction
  category: Network-Pluggable Web Server
  superclass: AuthorizedSwikiAction
  subclasses: RendererSwikiAction

An authorized Swiki that can generate cached pages with no link back to the
Swiki

Examples of setting them up:

Here's one that renders to an external, FTP-accessible website:
| sd auth |
sd _ ServerDirectory new.
sd directory: '/net/www/fac/mark.guzdial/testSwiki'; server: 'flintstone.com';
user: 'fred'; password: 'flintstone'.
RenderingSwikiAction new restore: 'testSwiki'.
(PWS actions at: 'testswiki') serverDirectory: sd.
auth _ Authorizer new mapName: 'user' password: 'testSwiki' to: 'user'.
(PWS actions at: 'testswiki') authorizer: auth.

Here's one that renders to a local directory accessible from a webserver:
| sd auth |
sd _ 'Guz 7600:WebSTAR 2.0:testSwiki:'.
RenderingSwikiAction setUp: 'testSwiki'.
(PWS actions at: 'testswiki') serverDirectory: sd.
auth _ Authorizer new mapName: 'user' password: 'testSwiki' to: 'user'.
(PWS actions at: 'testswiki') authorizer: auth.

instance methods
  accessing
  serverDirectory:

  process and generate
  browse:from:
generate:
pageURL:
process:

class methods
  no messages
 

instance methods
  accessing top  
 

serverDirectory:


  process and generate top  
 

browse:from:

Just reply with a page in HTML format -- use the rendering page
template rpage.html


 

generate:

Generate the page to the serverDirectory. Use the render.html page as a template


 

pageURL:

make the URL suited to aPage


 

process:

Handle requests of the form {swikiname}.{coreRef}.render


class methods
  no messages top