Platform Explorer / Nuxeo Platform 6.0

Operation TemplateProcessor.Render

Render with template

Description

Render the target document with the associated template if any. Returns the rendered Blob or the main Blob if no template is associated to the document.
Operation id TemplateProcessor.Render
Category Conversion
Label Render with template
Requires
Since

Parameters

Name Description Type Required Default value
save boolean no true 
store boolean no false 
templateName string no  

Signature

Inputs document
Outputs blob

Implementation information

Implementation class org.nuxeo.template.automation.RenderWithTemplateOperation
Contributing component org.nuxeo.platform.TemplateSources.operations

JSON definition

{
  "id" : "TemplateProcessor.Render",
  "label" : "Render with template",
  "category" : "Conversion",
  "requires" : null,
  "description" : "Render the target document with the associated template if any. Returns the rendered Blob or the main Blob if no template is associated to the document.",
  "url" : "TemplateProcessor.Render",
  "signature" : [ "document", "blob" ],
  "params" : [ {
    "name" : "attach",
    "description" : "",
    "type" : "boolean",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "save",
    "description" : "",
    "type" : "boolean",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ "true" ]
  }, {
    "name" : "store",
    "description" : "",
    "type" : "boolean",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ "false" ]
  }, {
    "name" : "templateData",
    "description" : "",
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "templateName",
    "description" : "",
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}