|
Class: STTModule (in Comanche)
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
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 initialization
-
initialize
-
(Smalltalk dialectName = 'SmalltalkX') ifTrue:[
-
loadClassesAndExtensions
-
self loadClassesAndExtensions
instance creation
-
on: anExecutionContext withDocumentRoot: aFilePath
-
Creates an instance of the receiver on anExecutionContext that
will search for STT template files starting at aFilePath
accessing
-
defaultFile
-
-
defaultFile: aFileName
-
-
documentRoot
-
Return the receiver's root for searching for STT template files
-
service
-
-
service: something
-
-
templates
-
Returns the receiver's dictionary of templates (actually aCache)
initializing
-
initializeOn: anExecutionContext withDocumentRoot: aFilePath
-
Initialize the receiver on aContext and with STT templates root
at aFilePath
-
templateFor: filePath
-
kom processing
-
getTempateOrNilFor: aFilePath
-
Process request, expected to point to an STT template resource
-
process: request
-
Process request, expected to point to an STT template resource
|