You are here

processTemplate

The processTemplate methods use the FreeMarker template processing services in Alfresco Content Services.

processTemplate(template)

processTemplate(template) this method executes a FreeMarker template file against the node. The node is used as the context for the document or space object in the templating default model.

Parameters

template
The node of the template to execute as a ScriptNode object.

Returns

Returns the transformed image node if successful, or null if the transformation failed.

processTemplate(template, args)

processTemplate(template, args) this method executes a FreeMarker template file against the node, passing the supplied array of name/value pair arguments to the template. The node is used as the context for the document or space object in the templating default model.

Parameters

template
The node of the template to execute as a ScriptNode object.
args
An associative array containing the name-value pairs of arguments to be passed to the template.

Returns

Returns the result of the template execution as a string.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.