This version is out of date, covering development as far as v4.2.5. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
A Tinderbox Reference File : Actions & Rules : exportedString() operator |
exportedString() operator |
The v4.0.0 operator exportedString() applies an export template to a note, returning the result as a string.
exportedString(what,templateFile)
what designates the note to be exported; it is commonly "this".
templateFile is an HTML export template or a text export template. If both an HTML export template and a text export template exists with the same name, the HTML template will be used.
Alternatively, the second argument may be an export template, which is then applied to the target note.
If the template name includes spaces or periods then enclose the name in double-quotes.
The exportedString() operator is especially useful in conjunction with the runCommand() operator. You can use exportedString() to assemble the input an external program will require, and then pass that input to the external program.
If you simply wish to transform a string or attribute value (e.g. $Name) into a 'safe' value for use as an HTML/XML element 'id' value, use idEncode().
Up: Actions & Rules | |
Previous: runCommand() operator | Next: eval() operator |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]