Skip to content
Erik C. Thauvin edited this page Mar 24, 2023 · 5 revisions

RIFE2 Template Renderers

Usage in Templates

In RIFE2, template value renderers are used as follows:

<!--v render:rife.render.RendererName/-->

or

{{v render:rife.render.RendererName/}}

To specify the value or attribute ID when applicable, use:

<!--v render:rife.render.RendererName:valueId/-->
{{v render:rife.render.RendererName:valueId/}}

For example, to capitalize a template foo value:

<!--v render:rife.render.Capitalize:foo/-->
{{v render.rife.render.Capitalize:foo/}}

Properties

Additionally, some renderers can be configured with Java-style properties.

For example, to display the current date time in UTC using the ISO 8601 format:

<!--v render:rife.render.DateTimeIso-->
tz=UTC
<!--/v-->

or

{{v render:rife.render.DateTimeIso}}
tz=UTC
{{/v}}

For a more in-depth look at value renderers, please read the full documentation.