Document Properties
A Document properties value contains metadata of the currently running template. There's only one of these in an evaluation process, which is always the value of the variable doc
.
The Document properties of an Online template also acts as a Map containing all the Parts of the template. The key of each Part is its name and the value is the corresponding DAP Part. So, for example, an expression ${doc['Main']}
resolves into the DAP Part "Main".
Related commands
document
This command can be used to change some of the properties of the only Document properties value.
Methods
getContentType() | Resolves into a String that is the content type of the currently running template. This will resolve into For example, the expression Using the shorthand form, the expression becomes |
getDocumentMIME() | Resolves into a String that is the MIME type of the currently running template. For example, the expression Using the shorthand form, the expression becomes |
getFileName() | Resolves into a String that is the file name of the currently running template. This is the same as the name of the template, but with file suffix included. For example, the expression Using the shorthand form, the expression becomes |
getName() | Resolves into a String that is the name of the currently running template. For example, the expression Using the shorthand form, the expression becomes |