EpilogFunction

EpilogFunction

is an option for DocumentGenerator allowing arbitrary code to be executed after a document is generated.

Details

  • EpilogFunction may be a pure function, notebook, CloudObject, or File. If qualified as Delayed, the resource will be used in place and no copy will be maintained in the generator bundle.
  • Functions will be passed the file name of the generated document. All types of epilog functions have access to the generated document through the variable $CurrentFile.
  • In case of template application failure, the epilog function will not execute.

Examples

Basic Examples  (1)

Deploy a generator:

In[1]:=
Click for copyable input
Out[1]=

Trigger the generator to run synchronously:

In[2]:=
Click for copyable input
Out[2]=

Examine contents of the cloud object generated by the epilog function:

In[3]:=
Click for copyable input
Out[3]=

Delete the generator:

In[4]:=
Click for copyable input
Out[4]=

See Also

DocumentGenerator  DocumentGeneratorInformation

Introduced in 2015
(10.1)