Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tv -- true temporary, non-session set/value tag SYNOPSIS [ts foo]The time is: [time fmt="%H:%M"][/ts] [tv foo] (Shows "The time is: 09:10") [tn bar]The time tag is set as in: [time fmt='%H:%M'][/tn] [tv bar] (Shows "The time tag is set as in: [time fmt='%H:%M']") DESCRIPTION Interchange uses "[tmp foo][/tmp]" and "[tmpn bar][/tmpn]" to set temporary scratch values. While this works OK in most cases, these values have to be managed in the session, and also may overwrite values which could be counted on by other pages (when set with "[set ...]") or by manipulating $Scratch. The above three tags replace this scheme with values that are based in the $Vend::Interpolate::Tmp space. These values are available in embedded Perl with $Tmp, so are usable in the same fashion as $Scratch. But they are truly temporary and will never be saved to a session. [ts VARNAME]VALUE[/ts] ITL code in VALUE *is* interoplated prior to setting VARNAME in $Tmp. [tn VARNAME]VALUE[/tn] ITL code in VALUE is *not* interoplated prior to setting VARNAME in $Tmp. [tv VARNAME] Display value of VARNAME. AUTHOR Mike Heins, <mike@icdevgroup.org> BUGS The usual number.
- Loading branch information