cgiemail 2.0 Release Notes
This document lists what has changed betweent the last release
of cgiemail version 1 (i.e. release 1.7) and the first release of
version 2.
DRAFT! Super-messy insiders-only DRAFT!
- The input variable name required-success is accepted as
a functional synonym for the success variable. This lets the
developer have its value selected by the HTML form, and also allows
her to force the user to make an active choice by making it a required input.
- The input variable name required-failure is accepted as
a functional synonym for the failure variable. Same as above.
-
Accepts cgilabel-name variable defined in the HTML
form to represent the label name ot use in an error message about a
required variable named name.
See "special input variables" in User Guide.
-
New pre-defined template variable, cgiuniqueid, contains a
string that is guaranteed unnique with each invocation of cgiemail.
use it to tag database input records, tie the contents of this form to
a followon page (e.g. for ecommerce), etc.
-
New format operators: (see user guide for details)
- %s -- printf as string, but now safer.
- %f -- printf as float
- %d, %x, %o -- printf as integer.
- @ -- tokenize string, extract a token.
- ~ -- extract regexp-matched region from value.
- = -- evaluate expression
- " -- string literal (for set)
New ":" pseudo-format to set the value of a template variable.
New "#" pseudo-formats to conditionalize the template; see
"conditionalizations" in manual.
the end, at least for now..