Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
STT - Smalltalk Templates
Last updated at 5:33 pm UTC on 16 January 2006
Last revision: 13/Jul/2002

Author: Federico G. Stilman - Thanks to Diego Gomez Deck for the idea!

Project Description


The same way ASP, JSP, PHP, etc. do it, STT's idea is to make possible to write Smalltalk code within the context of an HTML, or any kind of document. For instance,

This is number {%= 5 + 2 %}, and this are repeating words:
{% 10 timesRepeat: [ %}
ThisIsARepeatedWord
{% ] %}

is a simple template that STT can process to produce some output.

Status


Download


How to use

The following code will generate a #test template sending the resulting String to a file named testFile.
See class methods in category "examples" for more information.
f := FileStream newFileNamed: 'testFile'.
f nextPutAll: STTTemplate test.
f close


Known problems of this version


TODO List


DONE List


STT Ports to other Smalltalks