-
Notifications
You must be signed in to change notification settings - Fork 15
Deep Dive | Exports
Smith, Tim edited this page Dec 28, 2016
·
3 revisions
The exports
property is an object containing configuration objects used to export the output from templates. This is the top level schema with all possible properties:
{
"exports": {
"<export_name>": {
"name": "",
"type": "file",
"destination": "",
"customData": {}
}
}
}
Notes
- Replace
<export_name>
with any name desired. This name is only used for reference purposes
(string) The human-friendly name of the object. This value is completely arbitrary.
(string) The type of export to perform. The following values are supported:
-
file Exports the template result to a file. The template configuration must contain the
fileName
property.
(string) The path, relative to the application's root or an absolute path, to which the output files will be written.
(Object) An object of key/value pairs defining custom data to be made available to the request and template. Each key/value pair will be set to def.vars
as def.vars[key] = value
.