Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added mention of @%$ being special

...

  • A template is simply a named list of items to include, in order you want them to be shown.
  • The template controls the email message body; the subject is fixed.
  • Entries like node.XYZevent.ABC and link.EFG are treated specially, but only if they are isolated separate items.
    For example, the text entry "The lazy fox likes node.group"  is not special because here node.group is part of a longer bit of text.
  • All non-special plain text items are included as-is, ie. for generating static header or footer text.
  • You can write your texts either single- our double-quoted; within double-quoted strings all the standard backslash escapes work - e.g. "\t" for a tab character).
    As these are all perl strings, the "@", "$" and "%" characters are special: within double-quoted strings you'll need to prefix those with a backslash. No such problems arise when you use single-quoted strings, but then no backslash escapes whatsoever are recognized in single-quoted strings.
  • Newlines are NOT created automatically. You have to include "\n" for that (within your double-quoted strings, or as separate item) whereever you want a line break.
  • The line breaks in the actual template definition are not relevant.

...