Compare commits

..

2 commits

Author SHA1 Message Date
e227256ba9 bump: version 0.1.0a22 → 0.1.0a23 2025-12-22 09:58:13 +01:00
aa8b8b9980 fix: update tests 2025-12-22 09:57:57 +01:00
14 changed files with 62 additions and 11 deletions

View file

@ -1,3 +1,9 @@
## 0.1.0a23 (2025-12-22)
### Fix
- update tests
## 0.1.0a22 (2025-11-21)
### Fix

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail.output_formatter"
version = "0.1.0a22"
version = "0.1.0a23"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
description = "Rougail output formatter"

View file

@ -1 +1 @@
__version__ = "0.1.0a22"
__version__ = "0.1.0a23"

View file

@ -15,5 +15,5 @@ var2:
{% for val in _.var1 %}
{{ val }}
{% endfor %}
description: the value of _.var1
description: the value of "_.var1"
...

View file

@ -0,0 +1,22 @@
%YAML 1.2
---
version: 1.1
var1:
description: the variable
params:
multi_length: 3
default:
- val1
- val2
- val3
var2:
description: the variable
params:
multi_min_length: 1
multi_max_length: 4
default:
- val4
- val5
...

View file

@ -19,5 +19,5 @@ leader:
{% if _.leader == "a" %}
the value of "leader" is "a"
{% endif %}
description: if the value of "leader" is "a"
description: if the value of "_.leader" is "a"
...

View file

@ -25,5 +25,5 @@ var2:
{% if rougail.dyn1 is defined %}
{{ rougail.dyn1.var }}
{% endif %}
description: get the value of rougail.dyn1.var
description: get the value of "rougail.dyn1.var"
...

View file

@ -18,5 +18,5 @@ var2:
default:
jinja: >-
{{ rougail.dyn1.var }}
description: get the value of rougail.dyn1.var
description: get the value of "rougail.dyn1.var"
...

View file

@ -20,5 +20,5 @@ var2:
default:
jinja: >-
{{ _.dynval1.family.var }}
description: the value of var
description: the value of "_.dynval1.family.var"
...

View file

@ -0,0 +1,23 @@
%YAML 1.2
---
version: 1.1
dyn{{ identifier }}:
description: A dynamic famify for {{ identifier }}
dynamic:
- val1
- val2
var: # A dynamic variable for {{ identifier }}
var1:
description: A new variable
disabled:
variable: _.dynval1.var
when: val
var2:
description: A new variable
default:
variable: _.dyn{{ identifier }}.var
...

View file

@ -41,7 +41,7 @@ dyn{{ identifier }}:
default:
jinja: >-
{{ s1 }}-{{ s2 }}
description: join identifier 1 et identifier 2
description: join identifier 1 and identifier 2
params:
s1:
identifier: 0

View file

@ -43,7 +43,7 @@ dyn{{ identifier }}:
default:
jinja: >-
{{ s1 }}-{{ s2 }}
description: join identifier 1 et identifier 2
description: join identifier 1 and identifier 2
params:
s1:
identifier: 0

View file

@ -47,7 +47,7 @@ dyn{{ identifier }}:
default:
jinja: >-
{{ s1 }}-{{ s2 }}
description: join identifier 1 et identifier 2
description: join identifier 1 and identifier 2
params:
s1:
identifier: 0

View file

@ -39,7 +39,7 @@ dyn{{ identifier }}:
default:
jinja: >-
{{ s1 }}-{{ s2 }}
description: join identifier 1 et identifier 2
description: join identifier 1 and identifier 2
params:
s1:
identifier: 0