Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Instruction RENDER

Summary

RENDER [<file-options>] <source> <destination> [...<include-arg>]

The RENDER instruction renders a file from a template, and writes it to the specified destination. It accepts the same key=value arguments as INCLUDE. These arguments are made available in the template.

Example:

RENDER widgetfactory.tmpl /etc/widgetd/server.conf host="example.org" port=1234

The short form name (meaning name=name) is also supported here.

For example, in a component where host and port are available in the environment:

RENDER widgetfactory.tmpl /etc/widgetd/server.conf host port