---
title: "template value · RUAL Documentation"
description: "Renders the given template using mustache."
canonical: https://docs.rual.nl/block-types/value/value_text_template_v2
language: en
---

# template value

This block is part of the [`value`](https://docs.rual.nl/block-types/value) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Renders the given template using mustache.

- value required `value` The template where values are inserted. It is possible use variables within the template in two ways: as escaped values (e.g., `{{ field }}`) or unescaped values (e.g., `{{{ field }}}`). Additionally, it is possible to: Loop over values using `{{for field}} {{/field}}`, check if a value exists with `{{if field}} {{/field}}`, and check if a value does not exist using `{{if !field}} {{/field}}`.

- params `object`

- output `value`

- success `condition`

- error `value`

Renders the template with Mustache plus platform extensions: {{if x}}/{{if !x}}/{{for x}} sections, {{translate}}, {{scoped}}, and {{get}} lambdas, {{x.length}} on arrays, and comparison sections like {{#x == 1}}. The view comes from the object pin; nil values render as "" and entity/language keys are injected automatically. A template parse failure outputs value=nil, success=false and the message on error; an empty template outputs "" with success=true.

A typical wiring for [template value](https://docs.rual.nl/block-types/value/value_text_template_v2): [value](https://docs.rual.nl/block-types/value/value_default) feeds the `value` pin; [if](https://docs.rual.nl/block-types/object/object_branch) feeds the `object` pin; the `value` out pin feeds [convert to uppercase](https://docs.rual.nl/block-types/value/value_to_uppercase).

![Studio canvas example for the template value block: typical wiring for template value.](https://docs.rual.nl/canvas-examples/value_text_template_v2.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [new object](https://docs.rual.nl/block-types/object/object_new_fields): wired in both directions with this block. Builds a new object filled with the given fields.

- [value](https://docs.rual.nl/block-types/value/value_default): feeds into this block. Simply returns the provided value.

- [if](https://docs.rual.nl/block-types/object/object_branch): feeds into this block.

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

### Service documentation
