eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Comanche::STTModule':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: STTModule (in Comanche)


Inheritance:

   Object
   |
   +--Comanche::STTModule

Package:
stx:goodies/webServer/comanche/stt
Category:
Comanche-STT
Version:
rev: 1.30 date: 2007/02/09 13:28:04
user: sr
file: STTModule.st directory: goodies/webServer/comanche/stt
module: stx stc-classLibrary: stt
Author:
Federico Gregorio Stilman

Description:


STT (Smalltalk Templates) support. 
Enables embedding Smalltalk code in HTML and other documents too.

I'm a Comanche module that uses STT to serve dynamic content

[Date:]
    7 July 2002


Class protocol:

class initialization
o  initialize
(Smalltalk dialectName = 'SmalltalkX') ifTrue:[

o  loadClassesAndExtensions
self loadClassesAndExtensions

instance creation
o  on: anExecutionContext withDocumentRoot: aFilePath
Creates an instance of the receiver on anExecutionContext that
will search for STT template files starting at aFilePath


Instance protocol:

accessing
o  defaultFile

o  defaultFile: aFileName

o  documentRoot
Return the receiver's root for searching for STT template files

o  service

o  service: something

o  templates
Returns the receiver's dictionary of templates (actually aCache)

initializing
o  initializeOn: anExecutionContext withDocumentRoot: aFilePath
Initialize the receiver on aContext and with STT templates root
at aFilePath

o  templateFor: filePath

kom processing
o  getTempateOrNilFor: aFilePath
Process request, expected to point to an STT template resource

o  process: request
Process request, expected to point to an STT template resource



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 25 Apr 2024 11:26:33 GMT