arc:render keyword to render templates.
Parameters
- template: The .rst file to evaluate.
- templateData: The in-memory template to evaluate.
- in[put]: A comma-separated list of items to pass into the template.
- out[put]: The resulting item or feed.
- to: The attribute to push the result into.
You can also save the result by wrapping the
arc:renderstatement with a multi-line arc:set. - onerror: The action to perform when an error is encountered in a template. Set this to
clearto call and render a template only if there is no exception.
Control Attributes
NoneExamples
Catch an exception so the main template can render the rest of the content:See Also
- arc:catch: Handle exceptions in Script.
- arc:finally: Ensure that formatting is completed.