This version is out of date, covering development from v4.6.0 to v4.7.1. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
|
A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : exportedString(data,template) | aTbRef Site Map |
exportedString(data,template) |
Operator Type: | Formatting |
Operator Scope of Action: | Item |
The 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; this argument is evaluated allowing use of attribute values and expressions. 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: Full Operator List | |
Previous: every(group,value) | Next: first(item[,N]) |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]