1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/template/templates
Julien Champseix 19dc267e4c Allow specifying the output encoding in the template module (#42171)
Allow specifying the source and destination files' encodings in the template module

* Added output_encoding to the template module, default to utf-8
* Added documentation for the new variables
* Leveraged the encoding argument on to_text() and to_bytes() to keep the implementation as simple as possible
* Added integration tests with files in utf-8 and windows-1252 encodings, testing all combinations
* fix bad smell test by excluding windows-1252 files from the utf8 checks
* fix bad smell test by excluding valid files from the smart quote test
2018-07-25 13:10:40 -07:00
..
bar template: fix KeyError: 'undefined variable: 0 (#27972) 2017-08-09 18:50:53 -04:00
café.j2 Add tests for template with non-ascii filenames 2018-04-26 13:27:18 -07:00
encoding_1252.j2 Allow specifying the output encoding in the template module (#42171) 2018-07-25 13:10:40 -07:00
foo.j2
foo2.j2 Windows: Use the correct newline sequence for the platform (#21846) 2017-03-23 19:47:10 -07:00
foo3.j2 Windows: Use the correct newline sequence for the platform (#21846) 2017-03-23 19:47:10 -07:00
for_loop.j2 Fix jinja2>=2.9 nested include vars (#35099) 2018-02-07 10:58:29 +01:00
for_loop_include.j2 Fix jinja2>=2.9 nested include vars (#35099) 2018-02-07 10:58:29 +01:00
for_loop_include_nested.j2 Fix jinja2>=2.9 nested include vars (#35099) 2018-02-07 10:58:29 +01:00
import_as.j2 template: fix KeyError: 'undefined variable: 0 (#27972) 2017-08-09 18:50:53 -04:00
import_as_with_context.j2 template: fix KeyError: 'undefined variable: 0 (#27972) 2017-08-09 18:50:53 -04:00
import_with_context.j2 template: fix KeyError: 'undefined variable: 0 (#27972) 2017-08-09 18:50:53 -04:00
lstrip_blocks.j2 template: Add option to lstrip_blocks' and fix settingtrim_blocks` inline (#37478) 2018-03-23 12:05:21 -04:00
parent.j2 Don't restrict local jinja2 variables to those that start with l_ 2017-01-20 07:15:51 -06:00
qux template: fix KeyError: 'undefined variable: 0 (#27972) 2017-08-09 18:50:53 -04:00
short.j2
subtemplate.j2 Don't restrict local jinja2 variables to those that start with l_ 2017-01-20 07:15:51 -06:00
trim_blocks.j2 template: Add option to lstrip_blocks' and fix settingtrim_blocks` inline (#37478) 2018-03-23 12:05:21 -04:00