Versions Compared

Key

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

...

Table of Contents

Template Language

 

The necessity for a template language necessity appeared in early versions of SIL. Creating real mail templates was not very easy, and the SIL programmer had to resort to all kind of artificial constructs for that. Especially, repetitive constructs were hard to embed in the body of the mail, and they needed to be built in the script before inserting them into the mail, with all necessary escapes, making the process of sending that mail cluttered.

...

The STL generator keeps track of the line numbers so it can report back errors in the template, and not in the translated SIL unit.

Execution will append appends the result of the print statements in a buffer kept as a local execution variable in the SIL context, so once the script has finished, it is ready the unnecessary to be collected. 

...