Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you are just learning WordTemplate, this demo is a good place to start looking at the code.  The general sequence of handling a WordTemplate document is as follows:

1) Create an instance of WordTemplate,

2) Open the template document,

3) Set one or more document data sources or repeat blocks,

4) call theprocess() method to pull in the data, and finally

5) Save the document either to disk, or to a response stream to the client browser.

...