-
Bug
-
Resolution: Done
-
Critical
-
RH294 - RHEL9.0-en-4-20241107
-
None
-
False
-
-
False
-
5
-
-
-
en-US (English)
Please fill in the following information:
URL: | ch05s03 |
Reporter RHNID: | carias@redhat.com |
Section title: | Deploying Custom Files with Jinja2 Templates |
Language: | English |
Issue description
This is a regression from the issue https://issues.redhat.com/browse/PTL-5053.
The example that is given:
{{ '{#' }} /etc/hosts line {{ '#}' }}
The first line in the given example is not a Jinja2 comment. The text says that it will not be included in the final file, but that is wrong; it will be included in the final file because the beginning and the end of the comment block is escaped inside expression block and will be rendered as literal text.
The correct first line in the given example would be:
{# /etc/hosts line #}
- is related to
-
PTL-5053 RH294-126: ch05s03 - Missing example confuses the student
-
- Closed
-