Compare commits
2 commits
4e9e8b082e
...
66f044bee3
| Author | SHA1 | Date | |
|---|---|---|---|
| 66f044bee3 | |||
| c09800521c |
55 changed files with 90 additions and 74 deletions
|
|
@ -1,3 +1,9 @@
|
|||
## 0.1.0a5 (2025-03-27)
|
||||
|
||||
### Fix
|
||||
|
||||
- if and for in 3 lines
|
||||
|
||||
## 0.1.0a4 (2025-03-27)
|
||||
|
||||
### Feat
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail.output_formatter"
|
||||
version = "0.1.0a4"
|
||||
version = "0.1.0a5"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "Rougail output formatter"
|
||||
|
|
|
|||
|
|
@ -78,6 +78,8 @@ class RougailOutputFormatter:
|
|||
|
||||
self.config = Config()
|
||||
self.config.profile = 'jinja'
|
||||
self.config.line_break_after_multiline_tag = True
|
||||
self.config.indent = " "
|
||||
|
||||
self.original_yaml = RougailUpgrade(rougailconfig).run(filename)
|
||||
datas = RougailUpgrade(rougailconfig).run(filename)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ variable:
|
|||
description: a variable
|
||||
default:
|
||||
jinja: >-
|
||||
{{test_information }}
|
||||
{{ test_information }}
|
||||
description: get information test_information
|
||||
params:
|
||||
test_information:
|
||||
|
|
|
|||
|
|
@ -8,7 +8,11 @@ int1:
|
|||
type: number
|
||||
default:
|
||||
jinja: >-
|
||||
{% if rougail.bool %}1{% else %}2{% endif %}
|
||||
{% if rougail.bool %}
|
||||
1
|
||||
{% else %}
|
||||
2
|
||||
{% endif %}
|
||||
description: if bool returns 1 otherwise return 2
|
||||
|
||||
int2:
|
||||
|
|
@ -16,5 +20,9 @@ int2:
|
|||
type: number
|
||||
default:
|
||||
jinja: >-
|
||||
{% if not rougail.bool %}3{% else %}4{% endif %}
|
||||
{% if not rougail.bool %}
|
||||
3
|
||||
{% else %}
|
||||
4
|
||||
{% endif %}
|
||||
description: if bool returns 3 otherwise return 4
|
||||
|
|
|
|||
Loading…
Reference in a new issue