org.cofax
Class WysiwygTemplate
java.lang.Object
|
+--org.cofax.TemplateProcessor
|
+--org.cofax.WysiwygTemplate
- All Implemented Interfaces:
- java.lang.Runnable
- public class WysiwygTemplate
- extends TemplateProcessor
A template processor written for Cofax.
It can also be re-used in other applications.
It handles template files in a format
called the "WYSIWYG Template format".
Templates in this format are plain html files with
comment tags indicating where the data is to be inserted.
This is a simple to use yet powerful templating system
that requires only html knowledge.
Another feature of these templates is that they can
be previewed in a browser and editing using any
html editing tool. The name wysiwyg comes from the
ability of being able to use dummy to get a realistic
preview of what the pages that use this template will look like.
Using this template system saves the philly.com and
some other KnightRidder.com staff lots of time.
Cofax separates design from content and programming.
There is no mention of the WysiwygTemplate
class in
CofaxServlet
.
TemplateProcessor
classes are listed in the configuration.
- Version:
- 1.5
- Author:
- Rajiv Pant, Karl Martino, Sam Cohen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WysiwygTemplate
public WysiwygTemplate()
setPage
public void setPage(CofaxPage inPage)
- Overrides:
setPage
in class TemplateProcessor
setTemplate
public void setTemplate(CofaxPage inTemplate)
- Overrides:
setTemplate
in class TemplateProcessor
setGlossary
public void setGlossary(java.util.HashMap inGlossary)
- Overrides:
setGlossary
in class TemplateProcessor
setDb
public void setDb(DataStore inDb)
- Overrides:
setDb
in class TemplateProcessor
run
public void run()
applyTemplate
public final boolean applyTemplate()
- Processes template data and sets a CofaxPage when finished.
- Overrides:
applyTemplate
in class TemplateProcessor
applyTemplate
public final java.lang.String applyTemplate(java.lang.StringBuffer template,
java.util.HashMap glossary)
- Processes template and returns a string.
- Overrides:
applyTemplate
in class TemplateProcessor
Copyright 2001 KnightRidder.com. All Rights Reserved.