rougail-output-doc/tests/docs/base/00_9extra_calculation.md
2024-08-05 14:38:59 +02:00

10 KiB

Table of Contents

dictionaries/rougail/00-base.yml

---
version: '1.1'
variable: value  # a variable

dictionaries/extra/00-base.yml

---
version: '1.1'
variable1:
  description: a first variable
  default:
    type: variable
    variable: rougail.variable
variable2:
  description: a second variable
  default:
    type: jinja
    jinja: |
      {{ rougail.variable }}      
    description: copy the value of rougail.variable
variable3:
  description: a third variable
  default:
    type: jinja
    jinja: |
      {{ variable }}      
    params:
      variable:
        type: variable
        variable: rougail.variable
    description: copy the value of rougail.variable

Variables for "rougail"

Variable                                                                                                   Description                                                                                               
rougail.variable
string standard mandatory
A variable.
Default: value

Variables for "extra"

Variable                                                                                                   Description                                                                                               
extra.variable1
string standard mandatory
A first variable.
Default: the value of the variable "rougail.variable".
extra.variable2
string standard mandatory
A second variable.
Default: copy the value of rougail.variable.
extra.variable3
string standard mandatory
A third variable.
Default: copy the value of rougail.variable.

Example with all variables modifiable

---
rougail:
  variable: value
extra:
  variable1: value
  variable2: value
  variable3: value